1. Question: Which laravel function is used to make pagination?

    A
    {!! $data->render() !!}

    B
    {!! $data->paginate() !!}

    C
    {!! $data->pages() !!}

    D
    None

    Note: Not available
    1. Report
  2. Question: How can you insert a new record in the table in laravel?

    A
    $row=new MyModel; $row->field1=’Field1 Value’ $row->save()

    B
    $row=new MyModel; $row->field1=’Field1 Value’ $row->insert()

    C
    $row=new MyModel; $row->field1=’Field1 Value’ $row->create()

    D
    $row=new MyModel; $row->field1=’Field1 Value’ $row->add()

    Note: Not available
    1. Report
  3. Question: How can you update an existing record in laravel using a Model?

    A
    $row=new MyModel; $row->field1=’Field1 Value’ $row->save()

    B
    $row=new MyModel; $row->field1=’Field1 Value’ $row->insert()

    C
    $row=MyModel::find($id); $row->field1=’Field1 Value’ $row->create()

    D
    $row=new MyModel::find($id); $row->field1=’Field1 Value’ $row->save()

    Note: Not available
    1. Report
  4. Question: How can you delete a record from a table in laraval using a Model?

    A
    $row=new MyModel::find($id); $row->delete()

    B
    $row=new MyModel::find($id); $row->clear()

    C
    MyModel::destroy($id);

    D
    MyModel::delete($id);

    Note: Not available
    1. Report
  5. Question: Which artisan command use to encoding and serializing cache in routes

    A
    $ php artisan route : cache

    B
    $ php artisan route : class

    C
    $ php artisan route : complied

    D
    $ php artisan route : cached

    Note: Not available
    1. Report
  6. Question: What purpose of laravel forge?

    A
    Conjunction with another hosting service

    B
    Connection with the database.

    C
    Loading the full application.

    D
    All

    Note: Not available
    1. Report
  7. Question: How can you cache using artisan command?

    A
    $ php artisan clear: route

    B
    $ php artisan route : clear

    C
    $ php artisan route : remove

    D
    $ php artisan route : destroy

    Note: Not available
    1. Report
  8. Question: Which middleware is used to manage CSRF protection?

    A
    TokenVerifyCsrf.php

    B
    RedirectIfAuthenticated.php

    C
    VerifyCsrfToken.php

    D
    RedirectCsrfToken.php

    Note: Not available
    1. Report
  9. Question: Which middleware is used to confirm a user is signed in to the application?

    A
    Authenticated.php

    B
    RedirectIfAuthenticated.php

    C
    VerifyCsrfToken.php

    D
    AuthenticatedRedirect.php

    Note: Not available
    1. Report
  10. Question: TodoList::take(5)->skip(10)->orderby(“id”, asc)->get() means

    A
    Select the first 5 records after skipping 10 records

    B
    Select the last 5 records after skipping 10 records

    C
    Select the first 5 records

    D
    Select the last 5 records

    Note: Not available
    1. Report
Copyright © 2025. Powered by Intellect Software Ltd