Input type “file” returns EMPTY in Laravel php

I have this problem getting my string to an input type file, I’d try changing the input type to text, and when I return $request it works (just with type text, with file type it returns empty). I’d put enctype=”multipart/form-data” but that still empty value for file input. web.php Route::get(‘/profile’, ‘miPerfilController@index’)->name(‘profile’); Route::post(‘/profile/update’, ‘miPerfilController@updatePhoto’)->name(‘profile.update’); updatePhoto.blade.php <form…

Spatie/Laravel Permission

I use spatie package for permission and I check to create, edit, delete button show or hide using permission but not Working. permission proper set in database only 1 permission proper run Manage users permission. @if(auth()->user()->can(‘Create User’)) <a href=”” title=”Create User” class=”btn btn-primary” style=”margin-right: -20px”><i class=”fa fa-plus-circle”></i></a> @endif

I can’t show a file from storage in Laravel 6

I have a Laravel 6.0 application where users can upload files to a server and it stores in the storage file system of laravel. The system I’m using has been working in an older Laravel 5.6 project. The link the Controller gives me: domainame.com/public/file?folder=foldername&file=1569323440filename.png Controller public function getFile($foldername, $filename) { $fullpath = “app/{$foldername}/{$filename}”; return response()->download(storage_path($fullpath),…

Push Blade snippets to the stack from one Laravel package to another ‘parent’ package

I’ve create a private core CMS package and am in the process of creating sub packages for adding additional functionality as required. So in the core CMS package I have a view with: <ul class=”nav”> @stack(‘navigation’) </ul> And another view with core nav items: @push(‘navigation’) <li class=”nav-item”> <a class=”nav-link” href=””><i class=”fa fa-book”></i> Pages</a> </li> <li…

Laravel validation rule required_if another field value is in array, not working

Suppose I have form wizard, I want to separate validation rules based on the wizard index, suppose I want to have the following validation rules if wizard_index value is first or all or if wizard_index not exists. $rules = [ ‘wizard_index’ => [‘required’, ‘string’, ‘in:first,second,third,all’], ‘name’ => [‘required_if:wizard_index,in:first,all’, ‘string’, ‘max:50’, ‘min:3’], ‘about’ => [‘required_if:wizard_index,in:first,all’, ‘string’,…

Laravel – Jenssegers MongoDB nested array update not working

can someone please point out what wrong with my code? I am trying to update a nested array in MongoDB via Laravel Jenssegers. Here is my code $update_status = Journal::where(‘_id’, “5cd10b325586e9122761f675” ) ->update( [], [ ‘$set’ => [ “workflow.$[i].stages.$[j].stage_code” => “edit”, “workflow.$[i].stages.$[j].stage_name” => “Editing” ] ], [ ‘arrayFilters’ => [ [ “i.basic_details.wfCode” => ‘wf1’ ],…