esaeng

esaeng

Member Since 4 Months Ago

Experience Points
1,890
Total
Experience

3,110 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
1,890 XP
Sep
30
3 weeks ago
Activity icon

Started a new Conversation Laravel\Socialite\Two\InvalidStateException

Hi there! I am trying to login using facebook api. But getting this error.Suggestions plz..! Here is my controller code

<?php

 namespace App\Http\Controllers;
 use Illuminate\Http\Request;
 use Validator,Redirect,Response,File;
 use Socialite;
 use App\Models\User;

 class SocialiteController extends Controller
 {

 public function index()
 {
     return view('login');
 }
 
 public function redirect($provider)

 {
 	// dd($provider);
 	// dd(Socialite::driver($provider)->redirect());
     return Socialite::driver($provider)->redirect();
 }

 public function callback($provider)
 {
 	// dd('callback');

   $getInfo = Socialite::driver($provider)->user(); 
   dd($getInfo);
   $user = $this->create($getInfo,$provider); 
   auth()->login($user); 
   return redirect()->to('/home');
 }

 function create($getInfo,$provider)
 {

   $user = User::where('provider_id', $getInfo->id)->first();
   if (!$user) {
        $user = User::create([
           'name'     => $getInfo->name,
           'email'    => $getInfo->email,
           'provider' => $provider,
           'provider_id' => $getInfo->id
       ]);
     }
     return $user;
  }

}

Here is my ap\services.php code

  'facebook' => [
     'client_id' => 'client_id',
     'client_secret' => 'secret_id',
     'redirect' => 'http://localhost:8000/callback/facebook',
   ],
Sep
27
4 weeks ago
Activity icon

Replied to Call To Undefined Method Illuminate\Notifications\Messages\MailMessage::name()

@tisuchi Doing so,error is changed.

Undefined property: App\Notifications\OffersNotification::$id

Activity icon

Started a new Conversation Call To Undefined Method Illuminate\Notifications\Messages\MailMessage::name()

I am working on Notifications Sending In Laravel. facing this error..Suggestions Plz....!!! Here is my 'OffersNotification.php' code.

<?php

namespace App\Notifications;

use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Notifications\Messages\MailMessage;
use Illuminate\Notifications\Notification;

class OffersNotification extends Notification
{
    use Queueable;
    private $offerData;

    /**
     * Create a new notification instance.
     *
     * @return void
     */
    public function __construct($offerData)
    {
        $this->offerData = $offerData;
    }

    /**
     * Get the notification's delivery channels.
     *
     * @param  mixed  $notifiable
     * @return array
     */
    public function via($notifiable)
    {
        return ['mail','database'];
    }

    /**
     * Get the mail representation of the notification.
     *
     * @param  mixed  $notifiable
     * @return \Illuminate\Notifications\Messages\MailMessage
     */
    public function toMail($notifiable)
    {
        // dd($notifiable);
        return (new MailMessage)                    
            ->name($this->offerData['name'])
            ->line($this->offerData['body'])
            ->action($this->offerData['offerText'], $this->offerData['offerUrl'])
            ->line($this->offerData['thanks']);
    }

    /**
     * Get the array representation of the notification.
     *
     * @param  mixed  $notifiable
     * @return array
     */
    public function toArray($notifiable)
    {
        return [
            'offer_id' => $this->offerData['offer_id']
        ];
    }
}

NotificationController Code

<?php

namespace App\Http\Controllers;
use Illuminate\Http\Request;

use App\Models\Employee;
use Notification;
use App\Notifications\OffersNotification;

class NotificationController extends Controller
{
    // public function __construct()
    // {
    //     $this->middleware('auth');
    // }
  
    public function index()
    {
        return view('welcome');
    }
    
    public function sendOfferNotification() {
        $userSchema = Employee::first();
        // dd($userSchema);
  
        $offerData = [
            'name' => 'Muhammad Esa',
            'body' => 'You received an offer.',
            'thanks' => 'Thank you',
            'offerText' => 'Check out the offer',
            'offerUrl' => url('/'),
            'offer_id' => 007
        ];

       // dd($userSchema);
  
        // Notification::send($userSchema, new OffersNotification($offerData));
        Notification::send($userSchema,new OffersNotification($offerData));
   
        dd('Task completed!');
    }
}
Activity icon

Replied to Symfony\Component\Routing\Exception\RouteNotFoundException Route [login] Not Defined.

@adamt Yes I removed it from controller... Now another problem is coming... Call to undefined method Illuminate\Notifications\Messages\MailMessage::name() error is on line 45 code of OffersNotification.php

<?php

namespace App\Notifications;

use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Notifications\Messages\MailMessage;
use Illuminate\Notifications\Notification;

class OffersNotification extends Notification
{
    use Queueable;
    private $offerData;

    /**
     * Create a new notification instance.
     *
     * @return void
     */
    public function __construct($offerData)
    {
        $this->offerData = $offerData;
    }

    /**
     * Get the notification's delivery channels.
     *
     * @param  mixed  $notifiable
     * @return array
     */
    public function via($notifiable)
    {
        return ['mail','database'];
    }

    /**
     * Get the mail representation of the notification.
     *
     * @param  mixed  $notifiable
     * @return \Illuminate\Notifications\Messages\MailMessage
     */
    public function toMail($notifiable)
    {
        return (new MailMessage)                    
            ->name($this->offerData['name'])
            ->line($this->offerData['body'])
            ->action($this->offerData['offerText'], $this->offerData['offerUrl'])
            ->line($this->offerData['thanks']);
    }

    /**
     * Get the array representation of the notification.
     *
     * @param  mixed  $notifiable
     * @return array
     */
    public function toArray($notifiable)
    {
        return [
            'offer_id' => $this->offerData['offer_id']
        ];
    }
}

Activity icon

Started a new Conversation Symfony\Component\Routing\Exception\RouteNotFoundException Route [login] Not Defined.

I am working on notifications in Laravel. Here I am getting an error. Route Not Found..Suggestions Plzzz...!! Here is my Routes File....

<?php

use Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

// Route::get('/', function () {
//     return view('welcome');
// });


Route::get('/', 'App\Http\Controllers\[email protected]');


Route::get('/home', function () {
    return App\Models\Employee::paginate(5);
});



Route::get('students', [
    'uses' => 'App\Http\Controllers\[email protected]',
    'as' => 'student-list'
]);


Route::get('sort','App\Http\Controllers\[email protected]');
Route::get('sort','App\Http\Controllers\[email protected]');


Route::get('sort','App\Http\Controllers\[email protected]');


Route::get('indexSort','App\Http\Controllers\[email protected]');
Route::get('indexBetween','App\Http\Controllers\[email protected]');
Route::get('indexCarbon','App\Http\Controllers\[email protected]');
Route::get('indexGroupBy','App\Http\Controllers\[email protected]');



//Import/Export Excel Sheet

Route::get('file-import-export', 'App\Http\Controllers\[email protected]');
Route::post('file-import', 'App\Http\Controllers\[email protected]')->name('file-import');
Route::get('file-export', 'App\Http\Controllers\[email protected]')->name('file-export');


//Notification
Route::get('send-notification', 'App\Http\Controllers\[email protected]');

And here is my Notification controller.

<?php

namespace App\Http\Controllers;
use Illuminate\Http\Request;

use App\Models\Employee;
use Notification;
use App\Notifications\OffersNotification;

class NotificationController extends Controller
{
    public function __construct()
    {
        $this->middleware('auth');
    }
  
    public function index()
    {
        return view('welcome');
    }
    
    public function sendOfferNotification() {
        $userSchema = Employee::first();
        dd($userSchema);
  
        $offerData = [
            'name' => 'BOGO',
            'body' => 'You received an offer.',
            'thanks' => 'Thank you',
            'offerText' => 'Check out the offer',
            'offerUrl' => url('/'),
            'offer_id' => 007
        ];
  
        Notification::send($userSchema, new OffersNotification($offerData));
   
        dd('Task completed!');
    }
}
Activity icon

Replied to Method Illuminate\Database\Eloquent\Collection::links Does Not Exist. (View: C:\Users\Q C\laravel\Pagination_Laravel\resources\views\home.blade.php)

here is my controller code.


<?php

namespace App\Http\Controllers;
use Illuminate\Http\Request;

use App\Models\Employee;

class EmployeeController extends Controller
{
    public function getData(){
      $employees = Employee::all();

      // dd($employeeData[0]->firstname);

      // return view('home', compact('employeeData'));
            return view('home',compact('employees'));

    }
}
Activity icon

Started a new Conversation Method Illuminate\Database\Eloquent\Collection::links Does Not Exist. (View: C:\Users\Q C\laravel\Pagination_Laravel\resources\views\home.blade.php)

Hi there..I am doing pagination in Laravel. and getting this error..suggestions plzz.... here error is coming. ``

{!! $employeeData->links() !!} ``
Sep
08
1 month ago
Activity icon

Replied to Paypal Integration

#jlrdw packages in link, u shared are not working. these are abandoned, too.

Activity icon

Started a new Conversation Paypal Integration

Hello There. I want to integrate Paypal Payment Gateway in Laravel 7. I have searched a lot. But haven't got it yet. Packages for Paypal, I watched are abandoned. Kindly guide me about integrating Paypal in Laravel Latest Version. Thank You.

Jun
03
4 months ago
Activity icon

Started a new Conversation Target Class [admin] Does Not Exist.

I have admin.blade.php in views...still this error is coming..

Stack Trace

C:\Users\Q c\laravel\HotelSystem\vendor\laravel\framework\src\Illuminate\Container\Container.php:807































     *

     * @throws \Illuminate\Contracts\Container\BindingResolutionException

     */

    public function build($concrete)

    {

        // If the concrete type is actually a Closure, we will just execute it and

        // hand back the results of the functions, which allows functions to be

        // used as resolvers for more fine-tuned resolution of these objects.

        if ($concrete instanceof Closure) {

            return $concrete($this, $this->getLastParameterOverride());

        }

 

        try {

            $reflector = new ReflectionClass($concrete);

        } catch (ReflectionException $e) {

            throw new BindingResolutionException("Target class [$concrete] does not exist.", 0, $e);

        }

 

        // If the type is not instantiable, the developer is attempting to resolve

        // an abstract type such as an Interface or Abstract Class and there is
Activity icon

Replied to Target Class [admin] Does Not Exist.

Stack Trace

Illuminate\Container\Container::build
C:\Users\Q c\laravel\HotelSystem\vendor\laravel\framework\src\Illuminate\Container\Container.php:807































     *

     * @throws \Illuminate\Contracts\Container\BindingResolutionException

     */

    public function build($concrete)

    {

        // If the concrete type is actually a Closure, we will just execute it and

        // hand back the results of the functions, which allows functions to be

        // used as resolvers for more fine-tuned resolution of these objects.

        if ($concrete instanceof Closure) {

            return $concrete($this, $this->getLastParameterOverride());

        }

 

        try {

            $reflector = new ReflectionClass($concrete);

        } catch (ReflectionException $e) {

            throw new BindingResolutionException("Target class [$concrete] does not exist.", 0, $e);

        }

 

        // If the type is not instantiable, the developer is attempting to resolve

        // an abstract type such as an Interface or Abstract Class and there is
        return parent::make($abstract, $parameters);

    }

 

    /**

     * Resolve the given type from the container.

     *

     * @param  string  $abstract

     * @param  array  $parameters

     * @param  bool  $raiseEvents

     * @return mixed

     */

    protected function resolve($abstract, $parameters = [], $raiseEvents = true)

    {

        $this->loadDeferredProviderIfNeeded($abstract = $this->getAlias($abstract));

 

        return parent::resolve($abstract, $parameters, $raiseEvents);

    }

 

    /**

     * Load the deferred provider if the given type is a deferred service and the instance has not been loaded.

     *

     * @param  string  $abstract

     * @return void

     */

    protected function loadDeferredProviderIfNeeded($abstract)

    {

        if ($this->isDeferredService($abstract) && ! isset($this->instances[$abstract])) {

            $this->loadDeferredProvider($abstract);

        }

    }

Activity icon

Replied to Page Expiring On Logout .

when I click on logout button, i am getting 419 | Page Expired.

Activity icon

Started a new Conversation Page Expiring On Logout .

im using Auth::routes(); lm logging in correctly,but on logging out, page is expiring.

Activity icon

Started a new Conversation Target Class Not Found.

Target class [admin] does not exist.

admin.blade.php exists in views directory.still error is coming.

error showing in browser

Illuminate\Container\Container::build
C:\Users\Q c\laravel\HotelSystem\vendor\laravel\framework\src\Illuminate\Container\Container.php:807































     *

     * @throws \Illuminate\Contracts\Container\BindingResolutionException

     */

    public function build($concrete)

    {

        // If the concrete type is actually a Closure, we will just execute it and

        // hand back the results of the functions, which allows functions to be

        // used as resolvers for more fine-tuned resolution of these objects.

        if ($concrete instanceof Closure) {

            return $concrete($this, $this->getLastParameterOverride());

        }

 

        try {

            $reflector = new ReflectionClass($concrete);

        } catch (ReflectionException $e) {

            throw new BindingResolutionException("Target class [$concrete] does not exist.", 0, $e);

        }

 

        // If the type is not instantiable, the developer is attempting to resolve

        // an abstract type such as an Interface or Abstract Class and there is
Activity icon

Started a new Conversation Target Class [admin] Does Not Exist.

I have admin.blade.php in views directory..but im getting this error..

Illuminate\Contracts\Container\BindingResolutionException
Target class [admin] does not exist.

error showed in browser

Illuminate\Container\Container::build
C:\Users\Q c\laravel\HotelSystem\vendor\laravel\framework\src\Illuminate\Container\Container.php:807


     *

     * @throws \Illuminate\Contracts\Container\BindingResolutionException

     */

    public function build($concrete)

    {

        // If the concrete type is actually a Closure, we will just execute it and

        // hand back the results of the functions, which allows functions to be

        // used as resolvers for more fine-tuned resolution of these objects.

        if ($concrete instanceof Closure) {

            return $concrete($this, $this->getLastParameterOverride());

        }

 

        try {

            $reflector = new ReflectionClass($concrete);

        } catch (ReflectionException $e) {

            throw new BindingResolutionException("Target class [$concrete] does not exist.", 0, $e);

        }

 

        // If the type is not instantiable, the developer is attempting to resolve

        // an abstract type such as an Interface or Abstract Class and there is
Activity icon

Replied to Getting Errors At 'php Artisan Serve'

Can i use just Auth::routes(); instead of these routes?? im using these routes in my web.php for authentication purposes


// Authentication Routes...
$this->get('login', 'Auth\[email protected]')->name('login');
$this->post('login', 'Auth\[email protected]');
$this->post('logout', 'Auth\[email protected]')->name('logout');

// Password Reset Routes...
$this->get('password/reset', 'Auth\[email protected]')->name('password.request');
$this->post('password/email', 'Auth\[email protected]')->name('password.email');
$this->get('password/reset/{token}', 'Auth\[email protected]')->name('password.reset');
$this->post('password/reset', 'Auth\[email protected]');
``
Activity icon

Replied to Getting Errors At 'php Artisan Serve'

yes I have installed laravel/ui package and I have Auth::routes() too,. Still this error is coming...!

Activity icon

Started a new Conversation Getting Errors At 'php Artisan Serve'

Call to undefined method Illuminate\Routing\RouteFileRegistrar::get()

C:\Users\Q c\laravel\HotelSystem>php artisan serve

   Error

  Call to undefined method Illuminate\Routing\RouteFileRegistrar::get()

  at C:\Users\Q c\laravel\HotelSystem\routes\web.php:34
    30| //Route::get('/home', '[email protected]')->name('home');
    31|
    32|
    33| // Authentication Routes...
  > 34| $this->get('login', 'Auth\[email protected]')->name('login');
    35| $this->post('login', 'Auth\[email protected]');
    36| $this->post('logout', 'Auth\[email protected]')->name('logout');
    37|
    38| // Password Reset Routes...

  1   C:\Users\Q c\laravel\HotelSystem\vendor\laravel\framework\src\Illuminate\Routing\RouteFileRegistrar.php:35
      require()

  2   C:\Users\Q c\laravel\HotelSystem\vendor\laravel\framework\src\Illuminate\Routing\Router.php:417
      Illuminate\Routing\RouteFileRegistrar::register("C:\Users\Q c\laravel\HotelSystem\routes/web.php")
Jun
01
4 months ago
Activity icon

Started a new Conversation Application Is Not Responding

After php artisan serve...server is started..but application in browser is not running, its in processing ..i hv been waiting for sometime...

May
31
4 months ago
Activity icon

Replied to AdminLTE Integration, Starter.html Is Not Found

thank u..can u please tell me how should i install theme into my project..using Git or using Composer!??

Activity icon

Started a new Conversation AdminLTE Integration, Starter.html Is Not Found

I want to use adminLTE template in my project which is hotel management system...i have installed adminLTE using composer. but in it, starter.html cannot be found. suggestions plz

Activity icon

Replied to Could Not Showing View.

here is some code of view.. Iam getting issues in installing adminLTE template. that might be the reason for this...

@extends('adminlte::page')

@section('title', 'MeghKabbo | Dashboard')

@section('css')
  <link rel="stylesheet" type="text/css" href="{{ asset('css/dashboard.css') }}">
  <script src="{{ asset('vendor/adminlte/vendor/jquery/dist/jquery.min.js') }}"></script>
  {!!Html::style('https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datetimepicker/4.17.47/css/bootstrap-datetimepicker.min.css')!!}
@stop

@section('content_header')
    <h1>Dashboard</h1>
@stop

@section('content')
<div class="table-fixed-left">
  <table class="table-fixed-left-side">
    <tr>
      <th style="font-size: 16px !important;">Room <i class="fa fa-arrow-down" aria-hidden="true"></i>  | Date <i class="fa fa-arrow-right" aria-hidden="true"></i></th>
    </tr>
    <tr>
      <th style="background: #d1c4e9;" data-placement="right" title="101 Super Twin Double Bed">101 Super Twin D. Bed</th>
    </tr>
    <tr>
      <th style="background: #d1c4e9;" data-placement="right" title="102 Seper Group Bed">102 Super Group Bed</th>
    </tr>
    <tr>
      <th style="background: #f0f4c3;" data-placement="right" title="201 Deluxe Family Bed">201 Deluxe Family Bed</th>
    </tr>
    <tr>
      <th style="background: #00e676;" data-placement="right" title="202 Deluxe Couple Bed">202 Deluxe Couple Bed</th>
    </tr>
    <tr>
      <th style="background: #00e676;" data-placement="right" title="203 Deluxe Couple Bed">203 Deluxe Couple Bed</th>
    </tr>
    <tr>
      <th style="background: #00e676;" data-placement="right" title="301 Deluxe Couple Bed">301 Deluxe Couple Bed</th>
    </tr>
    <tr>
      <th style="background: #00e676;" data-placement="right" title="302 Deluxe Couple Bed">302 Deluxe Couple Bed</th>
    </tr>
    <tr>
      <th style="background: #00e676;" data-placement="right" title="303 Deluxe Couple Bed">303 Deluxe Couple Bed</th>
    </tr>
    <tr>
      <th style="background: #ccff90;" data-placement="right" title="401 Executive Twin Double Bed">401 E. Twin Double Bed</th>
    </tr>
    <tr>
      <th style="background: #795548; color: #fff;" data-placement="right" title="402 Deluxe Twin Double Bed">402 Deluxe Twin D. Bed</th>
    </tr>
    <tr>
      <th style="background: #795548; color: #fff;" data-placement="right" title="403 Deluxe Triple Bed">403 Deluxe T. Bed</th>
    </tr>
  </table>
</div>
<div class="table-fixed-right" id="MyDiv">
  <table class="table-fixed-right-side">
    <tr>
      @for($j=-15; $j<16;$j++)
      <td style="font-size: 16px !important;">
        @if(date('F d, Y', strtotime(Carbon::today()->addDays($j))) == 

Can u guide me how can i install adminLTE template using bower. Im getting this while installing


C:\Users\Q c\laravel\HotelSys\public>bower install admin-lte
bower                           ENOGIT git is not installed or not in the PATH

Very Keenly waiting for solution.Thank u

Activity icon

Replied to Could Not Showing View.

I am using adminlte template..there are no errors.. here are some routes in my web.php

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

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

// blackouts...
Route::get('/dashboard/blackouts', ['as' => 'dashboard.blackout', 'uses' => '[email protected]']);
Route::post('/dashboard/blackouts', ['as' => 'dashboard.blackout.store', 'uses' => '[email protected]']);
Route::put('/dashboard/blackouts/{id}', ['as' => 'dashboard.blackout.update', 'uses' => '[email protected]']);

here is dashboard controller code

 /**
     * Show the application dashboard.
     *
     * @return \Illuminate\Http\Response
     */
    public function index()
    {   
        $rooms = Room::all();
        $rooms_array = [];
        foreach ($rooms as $room) {
            array_push($rooms_array, $room->name);
        }
        $blackouts = Blackout::whereBetween('date', [Carbon::today()->addDays(-15), Carbon::today()->addDays(15)])->get();
        // delete the timeout bookings...
        $allreservations = Reservation::whereBetween('date', [Carbon::today()->addDays(-15), Carbon::today()->addDays(15)])->get();
        foreach ($allreservations as $reservation) {
            if(($reservation->reservation_status == 'Booked') && ($reservation->timelimit < Carbon::now())) {
                $reservation->delete();
                //dd($reservation->timelimit);
            }
        }

Activity icon

Started a new Conversation Could Not Showing View.

while entering url,view is not showing on any route. suggestions please!!

Activity icon

Replied to Fatal Error: Uncaught Error: Class 'ComposerAutoloaderInit2df80f1fd9ce68c1b9cf97a0495042e9' Not Found

i have done composer dump-autoload...now error is gone but view is not showing in browser on every route..what should I do now?

Activity icon

Started a new Conversation Fatal Error: Uncaught Error: Class 'ComposerAutoloaderInit2df80f1fd9ce68c1b9cf97a0495042e9' Not Found

here is vendor\autoload.php

<?php

// autoload.php @generated by Composer

require_once __DIR__ . '/composer/autoload_real.php';

return ComposerAutoloaderInit2df80f1fd9ce68c1b9cf97a0495042e9::getLoader();

Fatal error: Uncaught Error: Class 'ComposerAutoloaderInit2df80f1fd9ce68c1b9cf97a0495042e9' not found

my composer version is 1.10.6.. I am Laravel beginner. Needs your guide..waiting for responses..Thank you

Activity icon

Started a new Conversation Fatal Error: Uncaught Error: Class 'ComposerAutoloaderInit2df80f1fd9ce68c1b9cf97a0495042e9' Not Found In C:\Users\Q C\laravel\HotelSys\vendor\autoload.php:7 Stack Trace: #0 C:\Users\Q C\laravel\HotelSys\server.php(22): Require_once() #1 {main} Thrown In C

<?php

// autoload.php @generated by Composer

require_once __DIR__ . '/composer/autoload_real.php';

return ComposerAutoloaderInit2df80f1fd9ce68c1b9cf97a0495042e9::getLoader();

class not found in vendor\autoload.php

Activity icon

Replied to Warning And Fatal Error In Server.php

sure sir..Is that,issue reason ?

Activity icon

Started a new Conversation Warning And Fatal Error In Server.php


Warning: require_once(C:\Users\Q c\vendor\autoload.php): failed to open stream: No such file or directory in C:\Users\Q c\laravel\HotelSys\server.php on line 22

Fatal error: require_once(): Failed opening required 'C:\Users\Q c\vendor\autoload.php' (include_path='C:\xampp\php\PEAR') in C:\Users\Q c\laravel\HotelSys\server.php on line 22

May
30
4 months ago
Activity icon

Started a new Conversation Hint Path Not Defined For[adminlte].

Facade\Ignition\Exceptions\ViewException
No hint path defined for [adminlte]. (View: C:\Users\Q c\laravel\HotelSys\resources\views\dashboard\index.blade.php)

your suggestions please!!

Illuminate\View\FileViewFinder::parseNamespaceSegments
C:\Users\Q c\laravel\HotelSys\vendor\laravel\framework\src\Illuminate\View\FileViewFinder.php:112































     *

     * @param  string  $name

     * @return array

     *

     * @throws \InvalidArgumentException

     */

    protected function parseNamespaceSegments($name)

    {

        $segments = explode(static::HINT_PATH_DELIMITER, $name);

 

        if (count($segments) !== 2) {

            throw new InvalidArgumentException("View [{$name}] has an invalid name.");

        }

 

        if (! isset($this->hints[$segments[0]])) {

            throw new InvalidArgumentException("No hint path defined for [{$segments[0]}].");

        }

 

        return $segments;

    }

waiting for your suggestions anxiously

Activity icon

Replied to Cannot Open My Application

got it..solved..thank u sir

Activity icon

Started a new Conversation Cannot Open My Application

C:\Users\Q c\laravel\HotelSys>php artisan serve

   ErrorException

  Declaration of App\Providers\EventServiceProvider::boot(Illuminate\Contracts\Events\Dispatcher $events) should be compatible with Illuminate\Foundation\Support\Providers\EventServiceProvider::boot()

  at C:\Users\Q c\laravel\HotelSys\app\Providers\EventServiceProvider.php:27
    23|      *
    24|      * @param  \Illuminate\Contracts\Events\Dispatcher  $events
    25|      * @return void
    26|      */
  > 27|     public function boot(DispatcherContract $events)
    28|     {
    29|         parent::boot($events);
    30|
    31|         //

  1   C:\Users\Q c\laravel\HotelSys\app\Providers\EventServiceProvider.php:8
      Illuminate\Foundation\Bootstrap\HandleExceptions::handleError("Declaration of App\Providers\EventServiceProvider::boot(Illuminate\Contracts\Events\Dispatcher $events) should be compatible with Illuminate\Foundation\Support\Providers\EventServiceProvider::boot()", "C:\Users\Q c\laravel\HotelSys\app\Providers\EventServiceProvider.php", ["C:\Users\Q c\laravel\HotelSys\vendor\composer/../../app/Providers/EventServiceProvider.php"])

  2   C:\Users\Q c\laravel\HotelSys\vendor\composer\ClassLoader.php:444
      include("C:\Users\Q c\laravel\HotelSys\app\Providers\EventServiceProvider.php")
Activity icon

Replied to Credentials Dont Match.

got it..Thank you

May
29
4 months ago
Activity icon

Started a new Conversation Credentials Dont Match.

I have entered a user into database using sql query by myself..If i try to login from that user, credentials dont match,,whats the reason??,..if I register through Register Auth, then that user is logging in the app.

Activity icon

Replied to I Have Installed Laravel/ui Package..but Not Getting Register Button Link,

solved by clearing cache and making auth scaffoldings again.

Activity icon

Started a new Conversation I Have Installed Laravel/ui Package..but Not Getting Register Button Link,

just got login link on welcome page,,register button is missing

Activity icon

Replied to Symfony\Component\ErrorHandler\Error\FatalError Maximum Execution Time Of 60 Seconds Exceeded

I have made max_execution_time 1800 in php.ini..but still getting same thing

Activity icon

Started a new Conversation Symfony\Component\ErrorHandler\Error\FatalError Maximum Execution Time Of 60 Seconds Exceeded

C:\Users\Q c\laravel\Practice\vendor\swiftmailer\swiftmailer\lib\classes\Swift\KeyCache\DiskKeyCache.php:283































            $openMode = $this->hasKey($nsKey, $itemKey) ? 'r+b' : 'w+b';

            $fp = fopen($this->path.'/'.$nsKey.'/'.$itemKey, $openMode);

            $this->keys[$nsKey][$itemKey] = $fp;

        }

        if (self::POSITION_START == $position) {

            fseek($this->keys[$nsKey][$itemKey], 0, SEEK_SET);

        } elseif (self::POSITION_END == $position) {

            fseek($this->keys[$nsKey][$itemKey], 0, SEEK_END);

        }

 

        return $this->keys[$nsKey][$itemKey];

    }

 

    private function freeHandle($nsKey, $itemKey)

    {

        $fp = $this->getHandle($nsKey, $itemKey, self::POSITION_CURRENT);

        fclose($fp);

        $this->keys[$nsKey][$itemKey] = null;

    }

Im trying sending email with files attachment...and getting this

Activity icon

Replied to Error Class 'Illuminate\Html\HtmlServiceProvider' Not Found

   - don't install illuminate/support v5.4.19|don't install laravel/framework v7.13.0
    - don't install illuminate/support v5.4.27|don't install laravel/framework v7.13.0
    - don't install illuminate/support v5.4.36|don't install laravel/framework v7.13.0
    - don't install illuminate/support v5.4.9|don't install laravel/framework v7.13.0
    - Installation request for laravel/framework (locked at v7.13.0, required as ^7.0) -> satisfiable by laravel/framework[v7.13.0].


Installation failed, reverting ./composer.json to its original content.

C:\Users\Q c\laravel\Practice>composer require illuminate/html
Using version ^5.0 for illuminate/html
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Conclusion: don't install illuminate/html v5.0.0
    - Conclusion: remove laravel/framework v7.13.0
    - Installation request for illuminate/html ^5.0 -> satisfiable by illuminate/html[5.0.x-dev, v5.0.0].
    - Conclusion: don't install laravel/framework v7.13.0
    - illuminate/html 5.0.x-dev requires illuminate/support ~5.0 -> satisfiable by illuminate/support[5.0.x-dev, 5.1.x-dev, 5.2.x-dev, 5.3.x-dev, 5.4.x-dev, 5.5.x-dev, 5.6.x-dev, 5.7.17, 5.7.18, 5.7.19, 5.7.x-dev, 5.8.x-dev, v5.0.0, v5.0.22, v5.0.25, v5.0.26, v5.0.28, v5.0.33, v5.0.4, v5.1.1, v5.1.13, v5.1.16, v5.1.2, v5.1.20, v5.1.22, v5.1.25, v5.1.28, v5.1.30, v5.1.31, v5.1.41, v5.1.6, v5.1.8, v5.2.0, v5.2.19, v5.2.21, v5.2.24, v5.2.25, v5.2.26, v5.2.27, v5.2.28, v5.2.31, v5.2.32, v5.2.37, v5.2.43, v5.2.45, v5.2.6, v5.2.7, v5.3.0, v5.3.16, v5.3.23, v5.3.4, v5.4.0, v5.4.13, v5.4.17, v5.4.19, v5.4.27, v5.4.36, v5.4.9, v5.5.0, v5.5.16, v5.5.17, v5.5.2, v5.5.28, v5.5.33, v5.5.34, v5.5.35, v5.5.36, v5.5.37, v5.5.39, v5.5.40, v5.5.41, v5.5.43, v5.5.44, v5.6.0, v5.6.1, v5.6.10, v5.6.11, v5.6.12, v5.6.13, v5.6.14, v5.6.15, v5.6.16, v5.6.17, v5.6.19, v5.6.2, v5.6.20, v5.6.21, v5.6.22, v5.6.23, v5.6.24, v5.6.25, v5.6.26, v5.6.27, v5.6.28, v5.6.29, v5.6.3, v5.6.30, v5.6.31, v5.6.32, v5.6.33, v5.6.34, v5.6.35, v5.6.36, v5.6.37, v5.6.38, v5.6.39, v5.6.4, v5.6.5, v5.6.6, v5.6.7, v5.6.8, v5.6.9, v5.7.0, v5.7.1, v5.7.10, v5.7.11, v5.7.15, v5.7.2, v5.7.20, v5.7.21, v5.7.22, v5.7.23, v5.7.26, v5.7.27, v5.7.28, v5.7.3, v5.7.4, v5.7.5, v5.7.6, v5.7.7, v5.7.8, v5.7.9, v5.8.0, v5.8.11, v5.8.12, v5.8.14, v5.8.15, v5.8.17, v5.8.18, v5.8.19, v5.8.2, v5.8.20, v5.8.22, v5.8.24, v5.8.27, v5.8.28, v5.8.29, v5.8.3, v5.8.30, v5.8.31, v5.8.32, v5.8.33, v5.8.34, v5.8.35, v5.8.36, v5.8.4, v5.8.8, v5.8.9].
    - don't install illuminate/support 5.5.x-dev|don't install laravel/framework v7.13.0
    - don't install illuminate/support v5.5.0|don't install laravel/framework v7.13.0
    - don't install illuminate/support v5.5.16|don't install laravel/framework v7.13.0
    - don't install illuminate/support v5.5.17|don't install laravel/framework v7.13.0
    - don't install illuminate/support v5.5.2|don't install laravel/framework v7.13.0
    - don't install illuminate/support v5.5.28|don't install laravel/framework v7.13.0
    - don't install illuminate/support v5.5.3

while installing iluminate\html package, I am getting this

Activity icon

Started a new Conversation Error Class 'Illuminate\Html\HtmlServiceProvider' Not Found

C:\Users\Q c\laravel\Practice\vendor\laravel\framework\src\Illuminate\Foundation\ProviderRepository.php
        if (! is_writable($dirname = dirname($this->manifestPath))) {
            throw new Exception("The {$dirname} directory must be present and writable.");
        }
 
        $this->files->replace(
            $this->manifestPath, '<?php return '.var_export($manifest, true).';'
        );
 
        return array_merge(['when' => []], $manifest);
    }
 
    /**
     * Create a new provider instance.
     *
     * @param  string  $provider
     * @return \Illuminate\Support\ServiceProvider
     */
    public function createProvider($provider)
    {
        return new $provider($this->app);
    }
}
 
Arguments
"Class 'Illuminate\Html\HtmlServiceProvider' not found"

have registered Providers and Aliases in config/app.php,,,still getting that

May
28
4 months ago
Activity icon

Replied to I Have Installed Node.js, But Npm Is Not Recognized By System

yes, added to environment variable..solved

Activity icon

Started a new Conversation I Have Installed Node.js, But Npm Is Not Recognized By System


C:\Users\Q c\laravel\Practice>npm install && npm run dev
'npm' is not recognized as an internal or external command,
operable program or batch file.
Activity icon

Replied to Composer Installed But Getting This....,composer Is Not Recognized

Ive installed it by windows installer. nd Ive set path too

Activity icon

Started a new Conversation Composer Installed But Getting This....,composer Is Not Recognized

C:\Users\Q c>composer
'composer' is not recognized as an internal or external command,
operable program or batch file.
May
27
4 months ago
Activity icon

Replied to Control Not Moving Ahead From

I'm done. there was input fields name mismatch.

Activity icon

Replied to Control Not Moving Ahead From

i know..thats not issue.. I've commented dd...but method is not doing my job