lse123

lse123

Member Since 3 Months Ago

Experience Points
600
Total
Experience

4,400 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
600 XP
Sep
24
13 hours ago
Activity icon

Replied to Auth In Laravel 8.x - What Run In Cmd Line Artisan

Laravel Jetstream

Available Stacks:

Livewire + Blade

Or

Inertia.js + Vue

============================ I prefer Livewire + Blade How structure my Database Tables eg Users etc for Auth to work???

Where to find default Laravel Database Tables for differ apps like other Entities, eg Property Rentals Tables:

Users Properties Discounts Bookings

Activity icon

Started a new Conversation Auth In Laravel 8.x - What Run In Cmd Line Artisan

auth in Laravel 8.x - what run in cmd line artisan : this only: php artisan jetstream:install // is OK or needed additionally and more artisan commands ????

https://laravel.com/docs/8.x/authentication#included-routing

composer require laravel/jetstream

// Install Jetstream with the Livewire stack... php artisan jetstream:install livewire

// Install Jetstream with the Inertia stack... php artisan jetstream:install inertia

https://laravel.com/docs/8.x/authentication#included-views

php artisan jetstream:install

Sep
10
2 weeks ago
Activity icon

Started a new Conversation Events : Where Setup This: BroadcastOn() { Return New PrivateChannel

events: where setup this: broadcastOn() { return new PrivateChannel????????? if broadcastOn() omitted is ok? I Log in listener the :

    Log::info('Order Shipped with OrderId: ' . $event->order->orderId);  // $event->order->orderId = Not passed to Listener, well? I get:

F:\htdocs_xampp\Laravel\code\MyApp\storage\logs\laravel.log :

[2020-09-10 08:46:51] local.INFO: Order Shipped with OrderId: [2020-09-10 08:48:34] local.INFO: Order Shipped with OrderId:

namespace App\Events;

use Illuminate\Broadcasting\Channel; use Illuminate\Broadcasting\InteractsWithSockets; use Illuminate\Broadcasting\PresenceChannel; use Illuminate\Broadcasting\PrivateChannel; use Illuminate\Contracts\Broadcasting\ShouldBroadcast; use Illuminate\Foundation\Events\Dispatchable; use Illuminate\Queue\SerializesModels;

class OrderShipped { use Dispatchable, InteractsWithSockets, SerializesModels;

public $order;

/**
 * Create a new event instance.
 *
 * @param  \App\Order  $order
 * @return void
 */
public function __construct($order)
{
    $this->order = $order;
}

/**
 * Get the channels the event should broadcast on.
 *
 * @return \Illuminate\Broadcasting\Channel|array
 */
public function broadcastOn()
{
    return new PrivateChannel('admins');  // return new PrivateChannel('channel-name');
}

}

namespace App\Http\Controllers;

use App\Events\OrderShipped; use App\Http\Controllers\Controller; use App\Order;

class OrderController extends Controller { /** * Ship the given order. * * @param int $orderId * @return Response */ public function ship($id) { // $order = Order::findOrFail($orderId);

    $order = new Order($id); // $id replaced with value=1 same 

    // Order shipment logic...

    event(new OrderShipped($order));

    return view('welcome-event');
}

}

Aug
10
1 month ago
Activity icon

Replied to Can You Debug --- How To Create App\Mail ????

fixed it please reply

Aug
08
1 month ago
Activity icon

Started a new Conversation Can You Debug --- How To Create App\Mail ????

can you debug --- how to create App\Mail ????

history cmds:

337 composer require guzzlehttp/guzzle

338 composer fund

339 php artisan make:mail AssignmentCreated

341 php artisan make:model Mail

342 php artisan make:mail OrderShipped

Before 341 command getting: Error

Class 'App\Mail' not found

http://homestead2.test/users1

====================================== After 341 getting:

BadMethodCallException

Call to undefined method App\Mail::to()

http://homestead2.test/users1

Activity icon

Replied to How Users Can Download A File Jpg In Laravel 7.x Or 6.x

Worked as :

config/filesystems.php

'public' => [ 'driver' => 'local', 'root' => storage_path('app/public'), 'url' => env('APP_URL').'/storage', 'visibility' => 'public', ],

    'images' => [   
        'driver' => 'local',
        'root' => public_path('images'),
        'url' => env('APP_URL').'/images',
        'visibility' => 'public',
    ],


return Storage::disk('public')->download('2568346-p.jpg');  // or

return Storage::disk('images')->download('2568346.jpg');
Aug
07
1 month ago
Activity icon

Replied to How Users Can Download A File Jpg In Laravel 7.x Or 6.x

return Storage::download('/home/vagrant/MyApp/public/images/2568346.jpg'); // in a route

if the file is here ^^^ how to download... what is the file-path???

Aug
04
1 month ago
Activity icon

Replied to How Users Can Download A File Jpg In Laravel 7.x Or 6.x

Basically, The only I want is to test the download operation of Laravel 7.x... well?

I am new to Laravel And test in homestead, whatever read from ebook and Laravel Docs...

What file-path give for this URI...

return Storage::download('/home/vagrant/MyApp/public/images/2568346.jpg'); // in a route

this is in file htdocs_xampp\Laravel\code\MyApp\routes\web.php ... I use Windows 10 and homestead Vagrant Laravel for testing...

Activity icon

Replied to How Users Can Download A File Jpg In Laravel 7.x Or 6.x

This always failing:

return Storage::download('/home/vagrant/MyApp/public/images/2568346.jpg'); // in a route

// not work homestead2.test/users1

I tried ALL URLs... can you tell correct file-path so work???

Aug
01
1 month ago
Activity icon

Replied to How Users Can Download A File Jpg In Laravel 7.x Or 6.x

WHAT IS IN LARAVEL HOMESTEAD THE LINUX URI???

Activity icon

Replied to How Users Can Download A File Jpg In Laravel 7.x Or 6.x

a file path is the ABSOLUTE OS URI...?

Activity icon

Replied to How Users Can Download A File Jpg In Laravel 7.x Or 6.x

/home/vagrant/MyApp/ League\Flysystem\FileNotFoundException File not found at path: http:/homestead2.test/images/2568346.jpg http://homestead2.test/users1

Here what getting

Activity icon

Started a new Conversation How Users Can Download A File Jpg In Laravel 7.x Or 6.x

how users can download a file jpg in Laravel 7.x or 6.x

https://laravel.com/docs/7.x/filesystem#downloading-files

Route::get('users', function () {
    return Storage::download('http://homestead.test/images/2568346.jpg');
});

http://homestead.test/images/2568346.jpg // this in-browser appears an image and located at

F:\htdocs_xampp\Laravel\code\project1\public\images\2568346.jpg

getting http://homestead.test/dashboard/users >>>>>

League\Flysystem\FileNotFoundException File not found at path: http:/homestead.test/images/2568346.jpg http://homestead.test/dashboard/users ... ...

Jul
21
2 months ago
Activity icon

Replied to HERE I Do Not See Phpmyadmin Directory... And Get An

Last login: Tue Jul 21 05:50:05 2020 from 10.0.2.2 [email protected]:~$ ls MyApp project1 [email protected]:~$

note this : when doing: vagrant ssh ls (list files/dir) I do Not see PHPMyAdmin folder must provision? How provision server???

Jul
20
2 months ago
Activity icon

Started a new Conversation HERE I Do Not See Phpmyadmin Directory... And Get An

I followed this: https://www.edureka.co/community/65704/how-do-i-set-up-phpmyadmin-on-a-laravel-homestead-box

Last login: Tue Jul 21 05:50:05 2020 from 10.0.2.2 [email protected]:~$ ls MyApp project1 [email protected]:~$

but, HERE CLI ^^^ I do Not see phpmyadmin directory... And get an "No input file specified." when in browser call: http://phpmyadmin.test/

http://phpmyadmin.test/index.php

what to do?

Jun
28
2 months ago
Activity icon

Replied to Homestead2.test/login - But Not Loading App.css, App.js From

same thing errors

[email protected]:~$ cd MyApp/ [email protected]:~/MyApp$ sudo npm install npm WARN deprecated [email protected]: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected]^1.2.7 (node_modules/chokidar/node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected]~2.1.2 (node_modules/watchpack/node_modules/chokidar/node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

npm ERR! code EPROTO npm ERR! syscall symlink npm ERR! path ../@babel/parser/bin/babel-parser.js npm ERR! dest /home/vagrant/MyApp/node_modules/.bin/parser npm ERR! errno -71 npm ERR! EPROTO: protocol error, symlink '../@babel/parser/bin/babel-parser.js' -> '/home/vagrant/MyApp/node_modules/.bin/parser'

npm ERR! A complete log of this run can be found in: npm ERR! /home/vagrant/.npm/_logs/2020-06-28T09_35_26_106Z-debug.log [email protected]:~/MyApp$

Jun
25
2 months ago
Activity icon

Replied to Homestead2.test/login - But Not Loading App.css, App.js From

FAILING //// npm install //// npm run dev //// WHAT TO DO...?

Last login: Wed Jun 24 18:00:56 2020 from 10.0.2.2 [email protected]:~$ cd MyApp/ [email protected]:~/MyApp$ npm install npm WARN deprecated [email protected]: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected]^1.2.7 (node_modules/chokidar/node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected]~2.1.2 (node_modules/watchpack/node_modules/chokidar/node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

npm ERR! code EPROTO npm ERR! syscall symlink npm ERR! path ../@babel/parser/bin/babel-parser.js npm ERR! dest /home/vagrant/MyApp/node_modules/.bin/parser npm ERR! errno -71 npm ERR! EPROTO: protocol error, symlink '../@babel/parser/bin/babel-parser.js' -> '/home/vagrant/MyApp/node_modules/.bin/parser'

npm ERR! A complete log of this run can be found in: npm ERR! /home/vagrant/.npm/_logs/2020-06-25T20_34_43_066Z-debug.log [email protected]:~/MyApp$ exit logout Connection to 127.0.0.1 closed.

[email protected] MINGW64 /f/htdocs_xampp/Laravel/Homestead2020 (master) $ vagrant suspend ==> homestead: Saving VM state and suspending execution...

[email protected] MINGW64 /f/htdocs_xampp/Laravel/Homestead2020 (master) $ vagrant up Bringing machine 'homestead' up with 'virtualbox' provider... ==> homestead: Checking if box 'laravel/homestead' version '9.4.0' is up to date... ==> homestead: A newer version of the box 'laravel/homestead' is available and already ==> homestead: installed, but your Vagrant machine is running against ==> homestead: version '9.4.0'. To update to version '9.5.1', ==> homestead: destroy and recreate your machine. ==> homestead: Resuming suspended VM... ==> homestead: Booting VM... ==> homestead: Waiting for machine to boot. This may take a few minutes... homestead: SSH address: 127.0.0.1:2222 homestead: SSH username: vagrant homestead: SSH auth method: private key ==> homestead: Machine booted and ready! ==> homestead: Machine already provisioned. Run vagrant provision or use the --provision ==> homestead: flag to force provisioning. Provisioners marked to run always will still run.

[email protected] MINGW64 /f/htdocs_xampp/Laravel/Homestead2020 (master) $ vagrant ssh Welcome to Ubuntu 18.04.4 LTS (GNU/Linux 4.15.0-91-generic x86_64)

| | | | | | | |__ ___ _ __ ___ ___ | | ___ __ _ | | | ' \ / _ | ' _ \ / _ \/ __| __/ _ \/ _ |/ ` | | | | | () | | | | | | _/_ \ || __/ (| | (| | || ||_/|| || |_|_||/__|_,|_,|

  • Homestead v10.9.1

  • Settler v9.5.1 (Virtualbox, Parallels, Hyper-V, VMware)

  • Canonical Livepatch is available for installation.

0 packages can be updated. 0 updates are security updates.

Last login: Thu Jun 25 20:34:01 2020 from 10.0.2.2 [email protected]:~$ cd MyApp/ [email protected]:~/MyApp$ npm run dev

@ dev /home/vagrant/MyApp npm run development

@ development /home/vagrant/MyApp cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js

sh: 1: cross-env: not found npm ERR! code ELIFECYCLE npm ERR! syscall spawn npm ERR! file sh npm ERR! errno ENOENT npm ERR! @ development: cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js npm ERR! spawn ENOENT npm ERR! npm ERR! Failed at the @ development script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! /home/vagrant/.npm/_logs/2020-06-25T20_39_29_707Z-debug.log npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! @ dev: npm run development npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the @ dev script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! /home/vagrant/.npm/_logs/2020-06-25T20_39_29_717Z-debug.log [email protected]:~/MyApp$

Jun
24
3 months ago
Activity icon

Replied to Homestead2.test/login - But Not Loading App.css, App.js From

I scaffold js in Laravel 7.x but Not loading app.css, app.js from // what to do?

code\MyApp\resources\views\layouts\app.blade.php

code\MyApp\resources\sass\app.scss // this needed compiled to css??? if yes, when do so, how access CSS and JS files from resources\views\layouts\app.blade.php?

Activity icon

Started a new Conversation Homestead2.test/login - But Not Loading App.css, App.js From

Route::get('/login', function () { return view('auth.login'); })->name('login'); // http://homestead2.test/login

I scaffold js in Laravel 7.x but Not loading app.css, app.js from // what to do?

code\MyApp\resources\views\layouts\app.blade.php

see screenshot here:

https://yadi.sk/i/WGgXLvTKsLpIAg

[email protected]:~/MyApp$ npm install && npm run dev npm WARN deprecated [email protected]: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected]^1.2.7 (node_modules/chokidar/node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected]~2.1.2 (node_modules/watchpack/node_modules/chokidar/node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

npm ERR! code EPROTO npm ERR! syscall symlink npm ERR! path ../@babel/parser/bin/babel-parser.js npm ERR! dest /home/vagrant/MyApp/node_modules/.bin/parser npm ERR! errno -71 npm ERR! EPROTO: protocol error, symlink '../@babel/parser/bin/babel-parser.js' -> '/home/vagrant/MyApp/node_modules/.bin/parser'

npm ERR! A complete log of this run can be found in: npm ERR! /home/vagrant/.npm/_logs/2020-06-24T18_02_36_031Z-debug.log [email protected]:~/MyApp$

Jun
19
3 months ago
Activity icon

Replied to Can You Tell Why Can Not Seed Users Table -- Error!!!

seems your help worked

dump-autoload [--no-scripts] [-o|--optimize] [-a|--classmap-authoritative] [--apcu] [--no-dev]

[email protected]:~/MyApp$ composer dump-autoload Generating optimized autoload files

Illuminate\Foundation\ComposerScripts::postAutoloadDump @php artisan package:discover --ansi Discovered Package: facade/ignition Discovered Package: fideloper/proxy Discovered Package: fruitcake/laravel-cors Discovered Package: laravel/tinker Discovered Package: laravel/ui Discovered Package: nesbot/carbon Discovered Package: nunomaduro/collision Package manifest generated successfully. Generated optimized autoload files containing 4367 classes [email protected]:~/MyApp$ php artisan db:seed --class=UserSeeder Database seeding completed successfully. [email protected]:~/MyApp$

Activity icon

Replied to Can You Tell Why Can Not Seed Users Table -- Error!!!

Target class [UserSeeder] does not exist.

where this class should exist? Laravel 7.x...?

Activity icon

Started a new Conversation Can You Tell Why Can Not Seed Users Table -- Error!!!

[email protected]:~/MyApp$ php artisan db:seed --class=UserSeeder

Illuminate\Contracts\Container\BindingResolutionException

Target class [UserSeeder] does not exist.

at vendor/laravel/framework/src/Illuminate/Container/Container.php:807 803| 804| try { 805| $reflector = new ReflectionClass($concrete); 806| } catch (ReflectionException $e) {

807| throw new BindingResolutionException("Target class [$concrete] does not exist.", 0, $e); 808| } 809| 810| // If the type is not instantiable, the developer is attempting to resolve 811| // an abstract type such as an Interface or Abstract Class and there is

  +24 vendor frames

25 artisan:37 Illuminate\Foundation\Console\Kernel::handle() [email protected]:~/MyApp$

class UserSeeder extends Seeder { /** * Seed the application's database. * * @return void */ public function run() {

    DB::table('users')->insert([
        'name' => Str::random(10),
        'email' => Str::random(10).'@gmail.com',
        'password' => Hash::make('password'),
    ]);
}

}

Activity icon

Replied to AFAYK I Have To Modify Virtual Hosts PHP Configuration Files...on The Homestead Server

Problem Solved

After you have updated the aliases file, you should re-provision the Homestead machine using the

vagrant reload --provision

command. This will ensure that your new aliases are available on the machine.

Activity icon

Started a new Conversation AFAYK I Have To Modify Virtual Hosts PHP Configuration Files...on The Homestead Server

https://laravel.com/docs/7.x/homestead

I want to create a second Laravel App, but after doing the required procedure the second URL point to the first app and Not to the second folder well? Also, only the first folder shared to my windows 10 (share with VM - host Win 10 Pro on VirtualBox) - I do not see the second folder/app... well?

http://homestead.test/ # first http://homestead2.test/ # second

AFAYK I have to modify Virtual hosts PHP configuration files...on the homestead server for the second App? [ FYI I applied in host file win 10 pro the IP homestead2.test ]

but Not working...well?

Homestead.yaml

ip: "192.168.30.10" memory: 2048 cpus: 2 provider: virtualbox

authorize: C:/Users/lwdls/.ssh/id_rsa.pub

keys: - C:/Users/lwdls/.ssh/id_rsa

folders: - map: ../code/project1 to: /home/vagrant/project1 - map: ../code/MyApp to: /home/vagrant/MyApp

sites: - map: homestead.test to: /home/vagrant/project1/public - map: homestead2.test to: /home/vagrant/MyApp/public

databases: - homestead