1. we need to create Model according to database table name (for if database table name "Students" then model name is "Student".
2. create Controller like this
$data is variable name choose according to your choise and transaction::all() where transaction is name of model and all means to fetch all the data from database and 'transaction'=>$data where transaction is keyword choise according to choise
3. make route and don;t forget if form table url is "agent" and if your want to try to fetch all the data into database then for that route we must same url like "agent".
4.after start @foreach[$transact as $transaction] where $transact is a keyword which we r define in the control .
0 Comments