Questions tagged [laravel-datatables]

Laravel DataTables is an API designed to transform Laravel structures (collections, models, query builders) into a suitable format for consumption by the jQuery Datatables plugin.

Laravel DataTables on GitHub

Laravel DataTables documentation

69 questions
-1
votes
2 answers

How to hash password with md5 instead of bcrypt in laravel 8?

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' =>…
-1
votes
1 answer

Error creating page to change data from table in my blade

I created a page to implement the function of changing the data from the table, and after I did everything on the video tutorial I somehow do not work this page, here is the text of the error: Undefined variable: business (I still attached a…
Mineral
  • 39
  • 1
  • 1
  • 7
-1
votes
1 answer

LRAVEL 8 paginate does not exist, i need select data by region_id and paginate it

I found the paginate() method in the Laravel documentation. However, it doesn't work when I implement it. I get an error that paginate does not exist. I know paginate is maybe only for all(), but I need only a few columns, and I need to select the…
-1
votes
1 answer

Laravel Datatables - Error with undefined function

I am facing an issues bring Datatables into my existing laravel application. I have follow a couple of videos and getting stuck. I have the following in my MembersController.php file namespace App\Http\Controllers; use Alert; use DataTables; use…
Brendan
  • 95
  • 1
  • 15
-2
votes
1 answer

How can i define a delete method inside the delete button, It is returning the id of what i am trying to delete which means it is using get

So here are the index and destroy function but the delete button is not working properly and just giving me a blank page with the ID Controller //this is the index public function index() { if(request()->ajax()) { return…
-2
votes
2 answers

How to solve the problem of writing data to the database?

I created a page where you can add records to a database, and when I add a record I get an error: SQLSTATE[HY000]: General error: 1364 Field 'website' doesn't have a default value (SQL: insert into business (name, mail, updated_at, created_at)…
Mineral
  • 39
  • 1
  • 1
  • 7
-2
votes
1 answer

How can I make a beautiful table view on a website page ? Laravel

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') …
Mineral
  • 39
  • 1
  • 1
  • 7
-2
votes
1 answer

Neither it show an error nor save the Data into my database PHP Laravel?

I am trying to insert data into the database neither it shows an error nor saves the data into my database below are the codes. here is the create blade php page . @extends('layouts.app') @section('content')

Create a Camp