65059/how-can-we-use-the-custom-table-in-laravel
Hey,
We can easily use custom table in Laravel by overriding protected $table property of Eloquent. Here, is the sample:
class User extends Eloquent{ protected $table="my_user_table"; }
Thank you!
Hello, Migrations are like version control for your database, ...READ MORE
Laravel is configured to use MySQL by ...READ MORE
We need to create a new model ...READ MORE
Hello @kartik, If it isn't already there, create ...READ MORE
Laravel is a PHP web-framework; it utilized ...READ MORE
Hey @kartik, First you must have xampp install ...READ MORE
Hello, First you need to have laravel install ...READ MORE
Hii, First you need to start Apache and ...READ MORE
Hey @kartik, yes we can keep track of ...READ MORE
Middleware acts as a bridge between a ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.