Category : laravel-datatables

there is no problem with the my project on the web host, but when it enters in the local, the pages does not load and writes Invalid request (Unsupported SSL request) in the terminal. im using wamp and phpstorm this is mt .htaccess file: <IfModule mod_rewrite.c> <IfModule mod_negotiation.c> Options -MultiViews -Indexes </IfModule> RewriteEngine On # ..

Read more

i have 1 select image in my form which selects only one photo and my controller can only store one image address in database but i want to have 4 select image in my front which their’s all of name is image like this : <div class="image-upload-wrap"> <input class="file-upload-input" type=’file’ accept="image/*" name="image"/> <div class="drag-text"> <h5>Select</h5> ..

Read more

referencia de la pagina datatables.net el inconveniente se presenta en cargar la data cuando se produce el ciclo for, solo muestra los datos de la consulta no carga los datos en tabla, una vez que se elimina las lineas del ciclo for carga el script datatables <head> <link rel=”stylesheet” href=”https://cdn.datatables.net/1.10.25/css/jquery.dataTables.min.css”> </head> <body> <table id=”demo” class=”table ..

Read more

I have tried to get the Auto Increment ID from the ‘booking’ table before saving the new data’s, but I have errors all the time when I try to find a way. This is the code in controller: function addAppointment(Request $request) { $user = auth()->user(); $booking = new Booking(); $booking->vac_center_id = $request->get(‘vaccination_center’); $booking->vac_id = $request->get(‘vaccination_id’); ..

Read more

I know how I can decide this problem – MaxConnection, BUT I need in another solution, because I guess, this is not right, therefore I want to find a library which does it. Because I think, later I will get the error again. So is it possible to find which library creates a lot of ..

Read more

How do I sort according to the second data? The sorting works only on the ID. But in my table, I added a badge count and thats what I want to sort. Here is my controller return DataTables::of($users) ->addIndexColumn() ->addColumn(‘Inventories’, function ($row) { if($row->status != ‘Dumped2’) { return ‘<a href="’.route(‘admin.clients.show-client-inventories2′, $row->id).’" class="btn btn-info btn-sm">’.__("Inventories").’ <span ..

Read more

I want to hash password with md5 instead of bcrypt in laravel 8. In my login controller LoginController.php : protected function credentials(Request $request) { return [‘user_name’ => $request->{$this->username()}, ‘password’ => md5($request->password), ‘actif’ => ‘Y’]; } And in my UserController I have: public function store(Request $request) { $this->validationRules($request); $user = new User(); $user->password = md5("00000000"); $user->actif ..

Read more

Need help with the design of the text on the site page,I display the data of the table and they do not look good (attached a screenshot) help my view file: @extends(‘layouts.layout’) @section(‘title’)Бізнес@endsection @section (‘main_content’) <h1>Бизнес</h1> <p> @foreach ($business as $singleBusiness) <li>{{ $singleBusiness->id}}</li>> <li>{{ $singleBusiness->name}}</li>> <li>{{ $singleBusiness->mail}}</li>> <li>{{ $singleBusiness->website}}</li>> @endforeach </p> @endsection my plate looks ..

Read more

Reading manual https://yajrabox.com/docs/laravel-datatables/master/quick-starter I try to add laravel-datatables to my laravel 8 app and I have in the control: public function index(UsersDataTable $dataTable) { $viewParamsArray = getAppParameters(true, [‘csrf_token’], []); return $dataTable->render(‘admin.users.index’, $viewParamsArray); } In app/DataTables/UsersDataTable.php : <?php namespace AppDataTables; use AppModelsUser; use YajraDataTablesDataTables; use YajraDataTablesHtmlButton; use YajraDataTablesHtmlColumn; use YajraDataTablesHtmlEditorEditor; use YajraDataTablesHtmlEditorFields; use YajraDataTablesServicesDataTable; class UsersDataTable ..

Read more

I have a data collection and I have added a column with index: BACKEND: Route::get(‘user-data’, function() { $model = AppUser::query(); return DataTables::eloquent($model) ->addIndexColumn() ->toJson(); }); Frontend: { data: ‘DT_RowIndex’, ‘orderable’: false, ‘searchable’: false }, { data: ‘name’ }, { data: ’email’ }, { data: ‘phone’ } ] It gives a perfect result, but I need ..

Read more

I’m trying to add a form button to delete a record, but for some reason the csrf token doesn’t insert it. I’ve tried many ways but I can’t get it to work. Any suggestions? <div class="row"> <a href="{{ route(‘publicaciones.show’, $id)}}" class="btn btn-success btn-sm h-25 d-inline-block mr-3">Ver</a> <a href="{{ route(‘publicaciones.show’, $id)}}" class="btn btn-primary btn-sm h-25 d-inline-block">Editar</a> ..

Read more

In laravel 6 app I use "yajra/laravel-datatables-oracle": "^9.4" and I need selecting 1 row and running ajax request on server to delete this row I try to refresh table with draw() method and it does not work. In my blade file : @push(‘scripts’) var oTable; $(document).ready(function () { oTable = $(‘#my_tasks_data’).DataTable({ processing: true, serverSide: false, ..

Read more