Questions tagged as 'laravel'

1
answer

DatatTables Laravel 5.4

I'm trying to make the Datatables plugin work according to Yajrabox but I can not get it to show anything, it just shows the table but without DataTable options. My code is: ProductosController.php use Yajra\Datatables\Datatab...
asked by 20.09.2017 / 10:25
1
answer

Problem with file submission through ajaxFormData

Good, I have a problem regarding the way you sent file values, how I use ajax in jquery and the jquery-formdata library, I get the error of TypeError: 'slice' called on an object that does not implement interface Blob. I think it's becaus...
asked by 08.09.2017 / 04:05
3
answers

I can not see the bar of the library DEBUGBAR in laravel 5.4

I have installed this library barryvdh / laravel-debugbar in laravel 5.4.36 and I can not get it displayed, I added this line in the config / app in the service provider section Barryvdh\Debugbar\ServiceProvider::class, and in the section o...
asked by 11.09.2017 / 19:23
1
answer

Blank page when printing a Mysql statement using Laravel

I have this mysql statement public function mayores(Request $req){$taquito=DB::select('select * from clientes where edad = ?', [18]);view('Layouts.mayores',compact('taquito'));} to get all my clients older than 18 years old which is inside...
asked by 23.10.2017 / 14:57
1
answer

Laravel: Rename a file located in / resources

I have files saved in the following path: /resources/views/projects/nombreproyecto.blade.php So, I have a form that I ask for the new name of the project and what I want to do is rename the file, for example: I have a project called...
asked by 01.09.2017 / 14:47
1
answer

Route error when uploading project to shared hosting. (Laravel 5.4)

I uploaded my project to a shared hosting and it shows without problems the index.php but when clicking on a link it does not redirect me to the page it should, but it shows me error 404 indicating that the page does not exist. According to t...
asked by 16.08.2017 / 21:30
2
answers

PHP block array

How can I make this foreach show me blocks of 4 units? <div class="item active"> @foreach($stores as $stores) <div class="item"> <img src="/img/company/{{$stores->image}}"> </div> @endfor...
asked by 17.08.2017 / 07:03
1
answer

Filling a readonly input with Select2 in Laravel

A client asked me to enter an invoice you can select the identity card of the provider, and depending on it fill a field with the same name, and if you are not registered, you can register. Then I implemented Select2 for the ID search, and cr...
asked by 22.09.2017 / 06:18
1
answer

Laravel count days within a period of dates

I have 2 calendars, one issue date and another expiration date, I want to know how many days are between the dates placed and save it in a variable. For example, if my issue date is 02/07/2017 and my expiration date is 12/07/2017...
asked by 03.07.2017 / 00:01
2
answers

Git 'nothing to commit, working tree clean'

I got a laravel project by means of git clone , I made a new branch so as not to modify the original, but at the time of giving git commit it marks me: nothing to commit I have checked and I am in the correct folder, why can no...
asked by 05.07.2017 / 17:17