Md_Amirul

Md_Amirul

Member Since 1 Month Ago

Experience Points 4,230
Experience Level 1

770 experience to go until the next level!

In case you were wondering, you earn Laracasts experience when you:

  • Complete a lesson — 100pts
  • Create a forum thread — 50pts
  • Reply to a thread — 10pts
  • Leave a reply that is liked — 50pts
  • Receive a "Best Reply" award — 500pts
Lessons Completed 40
Lessons
Completed
Best Reply Awards 0
Best Reply
Awards
  • start-engines Created with Sketch.

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • first-thousand Created with Sketch.

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • 1-year Created with Sketch.

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • 2-years Created with Sketch.

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • 3-years Created with Sketch.

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • 4-years Created with Sketch.

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • 5-years Created with Sketch.

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • school-session Created with Sketch.

    School In Session

    Earned when at least one Laracasts series has been fully completed.

  • welcome-newcomer Created with Sketch.

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • full-time-student Created with Sketch.

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • pay-it-forward Created with Sketch.

    Pay It Forward

    Earned once you receive your first "Best Reply" award on the Laracasts forum.

  • subscriber-token Created with Sketch.

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • lifer-token Created with Sketch.

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • lara-evanghelist Created with Sketch.

    Laracasts Evangelist

    Earned if you share a link to Laracasts on social media. Please email [email protected] with your username and post URL to be awarded this badge.

  • chatty-cathy Created with Sketch.

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • lara-veteran Created with Sketch.

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • 10k-strong Created with Sketch.

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • lara-master Created with Sketch.

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • laracasts-tutor Created with Sketch.

    Laracasts Tutor

    Earned once your "Best Reply" award count is 100 or more.

  • laracasts-sensei Created with Sketch.

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • top-50 Created with Sketch.

    Top 50

    Earned once your experience points ranks in the top 50 of all Laracasts users.

12 Jul
1 week ago

Md_Amirul left a reply on 'alias' Not Recognized

Its resolved. Because I use cmd instead of git bash

11 Jul
1 week ago

Md_Amirul started a new conversation 'alias' Not Recognized

HI, I had problems when run alias test="vendor/bin/phpunit" on cmd before that, I run vendor\bin\phpunit

from this lecture https://laracasts.com/series/laravel-from-scratch-2018/episodes/37

this is the output: C:\xampp\htdocs\teams>alias test="vendor/bin/phpunit" 'alias' is not recognized as an internal or external command, operable program or batch file.

08 Jul
2 weeks ago

Md_Amirul left a reply on Object Of Class Illuminate\Auth\AuthManager Could Not Be Converted To String

@robstar

AuthManager {#237

#app: Application {#2 }

#customCreators: []

#guards: array:1 []

#userResolver: Closure($name = null) {#244 }

#customProviderCreators: []

}

Md_Amirul left a reply on Object Of Class Illuminate\Auth\AuthManager Could Not Be Converted To String

@robstar

AuthManager {#237 #app: Application {#2 } #customCreators: [] #guards: array:1 [] #userResolver: Closure($name = null) {#244 } #customProviderCreators: [] }

Md_Amirul left a reply on Object Of Class Illuminate\Auth\AuthManager Could Not Be Converted To String

C:\xampp\htdocs\new_project\vendor\laravel\framework\src\Illuminate\Support\Str.php

    return $string;
}

/**
 * Replace a given value in the string sequentially with an array.
 *
 * @param  string  $search
 * @param  array   $replace
 * @param  string  $subject
 * @return string
 */
public static function replaceArray($search, array $replace, $subject)
{
    $segments = explode($search, $subject);

    $result = array_shift($segments);

    foreach ($segments as $segment) {
        $result .= (array_shift($replace) ?? $search).$segment;
    }

    return $result;
}

/**
 * Replace the first occurrence of a given value in the string.
 *
 * @param  string  $search
 * @param  string  $replace
 * @param  string  $subject
 * @return string
 */
public static function replaceFirst($search, $replace, $subject)
{

"Object of class Illuminate\Auth\AuthManager could not be converted to string"

Above is the exact error

Md_Amirul started a new conversation Object Of Class Illuminate\Auth\AuthManager Could Not Be Converted To String

https://laracasts.com/series/laravel-from-scratch-2018/episodes/26 I getting this error

public function store() { $attributes = request()->validate([

        'title' => ['required', 'min:3'],
        'description' => ['required', 'min:3']
        
    ]);

    Project::create($attributes + ['owner_id' => auth()->id()]);
    return redirect('/projects');
}

}

05 Jul
2 weeks ago
04 Jul
2 weeks ago

Md_Amirul started a new conversation Base Table Or View Not Found

In laravel form scratch 5.7 on episod 26 in 8.40 I can't go to the add task interface

This is the error

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'tutorial.tasks' doesn't exist (SQL: select * from tasks where tasks.project_id = 3 and tasks.project_id is not null) (View: C:\xampp\htdocs\laravel_blog\resources\views\projects\show.blade.php)

ProjectTasksController.php

tasks()->create($task);

//$attributes = request()->validate(['description' => 'required']);//18 //$project->addTask($attributes); $project->addTask( request()->validate(['description' => 'required']) );

/*Task::create([

'project_id' => $project->id, 'description' => request('description') ]);*/

return back(); }

public function update(Task $task) {

/if(request()->has('completed')) { $task->complete(); } else { $task->incomplete(); }///

//request()->has('completed') ? $task->complete() : $task->incomplete();

$method = request()->has('completed') ? 'complete' : 'incomplete';//19

$task->$method();//19

//$task->completed(false);

//$task->complete(request()->has('completed'));//19 /*$task->update([

'completed' => request()->has('completed')

]);*/

return back(); }

}

form add task

                    @method('PATCH')    
                    @csrf
                    

                    <label class="checkbox {{ $task->completed ? 'is_completed' : '' }}" for="completed">
                        
                        <input type="checkbox" name="completed" onChange="this.form.submit()" {{ $task->completed ? 'checked' : '' }}>

                        {{ $task->description }}

                    </label>

                </form>

web.php

Route::get('/', function (Twitter $twitter){ //dd($twitter);

return view('welcome'); });

//GET /projects (index) //GET /projects/create (create) //GET /projects/1 (show) //POST /projects/ (store) //GET /projects/1/edit (edit) //PATCH /projects/1 (update) //DELETE /projects/1 (destroy)\

Route::resource('projects', 'ProjectsController');

/*Route::get('/projects', '[email protected]');

Route::get('/projects/create', '[email protected]');

Route::get('/projects/{project}', '[email protected]');

Route::post('/projects', '[email protected]');

Route::get('/projects/{project}/edit', '[email protected]');

Route::patch('/projects/{project}', '[email protected]');

Route::delete('/projects/{project}', '[email protected]'); */ Route::post('/projects/{project}/tasks', '[email protected]');