1. Question: ORM stands for _____

    A
    Object Relation Management

    B
    Object Relationship Management

    C
    Object Relational Mapping

    D
    Object Relational Management

    Note: Not available
    1. Report
  2. Question: How can you create a model in laravel using artisan command?

    A
    > php artisan make:model [ModelName]

    B
    > php artisan create:model [ModelName]

    C
    > php artisan make:[ModelName] model

    D
    > artisan make:[ModelName] model

    Note: Not available
    1. Report
  3. Question: Which command is used to see migration status?

    A
    $ php artisan migrate status

    B
    $ php artisan migrate:status

    C
    $ php artisan migration:status

    D
    None

    Note: Not available
    1. Report
  4. Question: In laravel accessors means _____

    A
    Member Functions

    B
    Events

    C
    Getter Functions

    D
    Setter functions

    Note: Not available
    1. Report
  5. Question: In laravel mutators means ______

    A
    Setter functions

    B
    Getter functions

    C
    Events

    D
    Member functions

    Note: Not available
    1. Report
  6. Question: Which variable is used to validate your model in laravel?

    A
    $validator

    B
    $validation

    C
    $rules

    D
    $validation_rules

    Note: Not available
    1. Report
  7. Question: Which function is used to retrieve a single record from a table by primary key in laravel?

    A
    App\MyModel::find_by_id()

    B
    App\MyModel::findId()

    C
    App\MyModel::find()

    D
    App\MyModel::get()

    Note: Not available
    1. Report
  8. 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
  9. 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
  10. 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
Copyright © 2024. Powered by Intellect Software Ltd