This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace App\Http\Controllers; | |
| use Illuminate\Http\Request; | |
| use App\Post; | |
| class PostController extends Controller{ | |
| public function getBlogIndex() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @extends('layouts.admin-master') | |
| @section('styles') | |
| <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css" /> | |
| <link rel="stylesheet" href="{{URL::to('src/css/categories.css')}}" type="text/javascript" /> | |
| @endsection | |
| @section('content') | |
| <div class="container"> | |
| <section id="category-admin"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public function fazUpload(Request $request) { | |
| if( $request->hasFile('file') ) { | |
| $files = $request->file('file'); | |
| $verificacaoMime = $this->verificaMime($files); | |
| if ( sizeof($verificacaoMime) > 0) { | |
| return redirect() | |
| ->route('upload') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| View: | |
| <a href="{{ route('loja.produtos.pesquisar.categorias', ['categoria' => $categoria['nome'], 'subcategoria' => $sub['nome']]) }}">{{$sub['nome']}}</a> | |
| Controller | |
| public function pesquisaCategorias(Request $request) | |
| { | |
| dd($request->url(), $request->all()); | |
| } |