Prachee

Prachee

Member Since 3 Months Ago

Experience Points
460
Total
Experience

4,540 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
0
Lessons
Completed
Best Reply Awards
0
Best Reply
Awards
  • start your 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-in-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 Created with Sketch.

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • lifer Created with Sketch.

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • evangelist 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.

Level 1
460 XP
Aug
08
2 months ago
Activity icon

Replied to Error While Creating Custom Multi-auth

No I didn't use it.

Aug
07
2 months ago
Activity icon

Replied to Error While Creating Custom Multi-auth

After removing admin middleware also it isn't working

Activity icon

Started a new Conversation Error While Creating Custom Multi-auth

Fatal error: Uncaught ReflectionException: Class App\Http\Kernel does not exist in C:\xampp\htdocs\CRM\crm-system\vendor\laravel\framework\src\Illuminate\Container\Container.php:809 Stack trace: #0 C:\xampp\htdocs\CRM\crm-system\vendor\laravel\framework\src\Illuminate\Container\Container.php(809): ReflectionClass->__construct('App\Http\Kernel') #1 C:\xampp\htdocs\CRM\crm-system\vendor\laravel\framework\src\Illuminate\Container\Container.php(691): Illuminate\Container\Container->build('App\Http\Kernel') #2 C:\xampp\htdocs\CRM\crm-system\vendor\laravel\framework\src\Illuminate\Foundation\Application.php(796): Illuminate\Container\Container->resolve('App\Http\Kernel', Array, false) #3 C:\xampp\htdocs\CRM\crm-system\vendor\laravel\framework\src\Illuminate\Container\Container.php(269): Illuminate\Foundation\Application->resolve('App\Http\Kernel', Array, false) #4 C:\xampp\htdocs\CRM\crm-system\vendor\laravel\framework\src\Illuminate\Container\Container.php(805): Illuminate\Container\Container->Illuminate\Container{clo in C:\xampp\htdocs\CRM\crm-system\vendor\laravel\framework\src\Illuminate\Container\Container.php on line 811

IN Kernel Middleware added last AdminMiddleware

protected $routeMiddleware = [ 'auth' => \App\Http\Middleware\Authenticate::class, 'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class, 'bindings' => \Illuminate\Routing\Middleware\SubstituteBindings::class, 'cache.headers' => \Illuminate\Http\Middleware\SetCacheHeaders::class, 'can' => \Illuminate\Auth\Middleware\Authorize::class, 'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class, 'password.confirm' => \Illuminate\Auth\Middleware\RequirePassword::class, 'signed' => \Illuminate\Routing\Middleware\ValidateSignature::class, 'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class, 'verified' => \Illuminate\Auth\Middleware\EnsureEmailIsVerified::class, 'admin' => AdminMiddleware::class, ];

Jul
23
3 months ago
Activity icon

Started a new Conversation Error Class 'App\Http\Controllers\Auth' Not Found Http://localhost/Laravel/public/delete-post/4

Laravel Version 7.20 Function in PostController.

public function getDeletePost($post_id) { $post = Post::where('id', $post_id)->first(); if(Auth::user() != $post->user){ return redirect()->back(); } $post->delete(); return redirect()->route('dashboard')->with(['message' => 'Successfully Deleted!']); }

Jul
22
3 months ago
Activity icon

Started a new Conversation ParseError Syntax Error, Unexpected '=>' (T_DOUBLE_ARROW), Expecting ']' Http://localhost/Laravel/public/account

Web.php file Route::get('/account',[ 'uses' => '[email protected]', 'as' => 'account' ]);

Route::post('/updateaccount'[
	'uses' => '[email protected]',
	'as' => 'account.save'
]);

UserController.php FILE

public function getAccount() { return view('account', ['user' => Auth::user()]); } public function postSaveAccount(Request $request) { $this->validate($request, [ 'first_name' => 'required|max:120' ]);

    $user = Auth::user();
    $old_name = $user->first_name;
    $user->first_name = $request['first_name'];
    $user->update();
    $file = $request->file('image');
    $filename = $request['first_name'] . '-' . $user->id . '.jpg';
    $old_filename = $old_name . '-' . $user->id . '.jpg';
    $update = false;
    if (Storage::disk('local')->has($old_filename)) {
        $old_file = Storage::disk('local')->get($old_filename);
        Storage::disk('local')->put($filename, $old_file);
        $update = true;
    }
    if ($file) {
        Storage::disk('local')->put($filename, File::get($file));
    }
    if ($update && $old_filename !== $filename) {
        Storage::delete($old_filename);
    }
    return redirect()->route('account');
}
Jul
19
3 months ago
Activity icon

Replied to Function () Does Not Exist Http://localhost/Laravel/public/signup

Yaa...I would change the names too

Activity icon

Replied to Function () Does Not Exist Http://localhost/Laravel/public/signup

Hii @mvd Thanks for the help... it works :)

Activity icon

Started a new Conversation Function () Does Not Exist Http://localhost/Laravel/public/signup

I don't know why this isn't redirected to signup page. Laravel version 7.20. This is my Web.php code Route::get('/', function () { return view('welcome'); });

Route::post('/signup', [
	'users' => '[email protected]',
	'as' => 'signup'
]);

Route::post('/signin', [
	'users' => '[email protected]',
	'as' => 'signin'
]);

Route::get('/dashboard', [
	'users' => '[email protected]',
	'as' => 'dashboard'
]);

& of UserConroller.php file is

Jul
17
3 months ago
Activity icon

Started a new Conversation In Which File To Write Application Routes

Hello! I actually have different folder structure of Laravel setup due to different version as compared to my previous version 5.2 .And so now I do not have route.php file in Http folder. While I have routes folder containing api.php, channels.php, console.php, web.php . So can anyone plz guide me where should I write application routes

Jul
16
3 months ago
Activity icon

Replied to Composed Installed But Still Showing Error As ..Composed Not Recognized

Laravel Installed...Thanks for the help :)

Jul
15
3 months ago
Activity icon

Replied to Composed Installed But Still Showing Error As ..Composed Not Recognized

It's working. .Phar & .bat files are already there in Laravel folder. Composer isn't recognised while installing Laravel Setup in the same folder named 'Laravel'.

Activity icon

Replied to Composed Installed But Still Showing Error As ..Composed Not Recognized

Ya.. Already did . But I do Have composer.phar and .Bat files in Laravel Folder

Activity icon

Replied to Composed Installed But Still Showing Error As ..Composed Not Recognized

Actually I don't know to how to install Composer Globally. Can you plz guide me. & I am using Xampp on Windows 10. I have previously installed it While working on PHP project for phpMailer.

Activity icon

Started a new Conversation Composed Installed But Still Showing Error As ..Composed Not Recognized

Hey there I am not able to solve the issue. I have installed the Composer but still there is error and I tried changing Environment variables but there is no Composer file in Program Data Folder. But i have installed Composer in Laravel folder of htdocs where there is Composer.phar file & so i tried editing Path as C:\xampp\htdocs\Laravel. But still issue remains unsolved. & how do i uninstall Composer? to reinstall it.