felloz

felloz

Member Since 10 Months Ago

Experience Points
790
Total
Experience

4,210 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
790 XP
Sep
19
21 hours ago
Activity icon

Started a new Conversation Double Click On Navbar Option = Logout

For some reason that I don't understand, when I double click on an option on the navbar that calls a route, laravel log me out from the system.

Isn't something that always happen but happens a lot. I can use href="{{ url('/home') }}" or simple href="/home" and happens the same, but if clicked only one time everything works good.

Also it doesn't matter the route I just copied /home for get one, but it happens to all.

 <li class="nav-item active">
    <a class="nav-link" href="{{ url('/home') }}">
    <i class="fas fa-fw fa-tachometer-alt"></i>
    <span>Dashboard</span></a>
</li>
Sep
16
3 days ago
Activity icon

Replied to Loading Spinner In Blade

It's there a way to call the function when the screen starts to loading?

Activity icon

Started a new Conversation What Does Require("bootstrap") ?

Actually i have a dashboard builded in bootstrap 4, but for some reason this line require("bootstrap"); its breaking the toggle navbar items. So if i comment the line the toggle start to works right again but idk if that function works for something important in laravel mix.

The file is located in resource/js/bootstrap.js and the file its called in the app.js

This is the code:

window._ = require("lodash");



try {
    window.Popper = require("popper.js").default;
    window.$ = window.jQuery = require("jquery");

    //This is the line that broke my toggle nav bar	
    require("bootstrap");
} catch (e) {}


window.axios = require("axios");

window.axios.defaults.headers.common["X-Requested-With"] = "XMLHttpRequest";
Sep
15
4 days ago
Activity icon

Started a new Conversation Laravel Dashboard + Bootstrap4-vue

Hello, im looking for a Dashboard builded with Bootstrap4-vue. But all that i can find are builded in vue-cli, i want to use it in Blade like regular jquery dashboards.

Anyone know a Dashborad easy to integrate with laravel builded in Bootstra4-vue, any information is appreciated. Would like a free version to start.

Activity icon

Replied to Show Regular Validation / Request Errors.

Done I used the for inside the toast function declaration, im using a toast to show the message.

Thank you so much.

Activity icon

Replied to Show Regular Validation / Request Errors.

Almost, but returns me an object, how can i access that object message?

{planName: Array(1)}planName: Array(1)0: "The plan name has already been taken."length: 1__proto__: Array(0)__proto__: Object

I can't just put plan planName because changes in the error.

Activity icon

Replied to Show Regular Validation / Request Errors.

I think thats exactly the problem, because i just deleted the try catch in the php controller and I keep receiving the same message: The given data was invalid. So i think that its a regular message builded by axios, its not showing the message that backend sends. This is how i have the catch in the axios.

.then(response =>
    this.toast(
        "b-toaster-top-right",
        true,
        response.data,
        "success",
        "Done!"
   )
)
.catch(function (err) {
    console.log(err.response.data.message);
}

I think that the catch of axios its replacing the catch of backend, i want to show the message that backend send me.

Sep
14
5 days ago
Activity icon

Started a new Conversation Show Regular Validation / Request Errors.

Hello, im sending for post (axios) in a Vuejs component form some data, that im validating in the controller, but when returns the error only return the same word, not even the default errors "The given data was invalid."

What should i do to show the standard laravel errors related to each field.

in the try:

try {
        $data = request()->validate(
                [
                    'planName' => 'required|max:20|string|unique:plans,plan_name',
                    'planPrice' => 'required|numeric',
                    'maxAccounts' => 'required|integer',
                    'unlimited' => 'nullable|boolean',
                    'totalLists' => 'nullable|integer',
                    'contacts' => 'required|integer',
                    'sends' => 'required|integer'
                ]
     );

and the catch

} catch (\Exception $th) {

            return Response::json(
                array(
                    'code'      =>  301,
                    'message'   => $th->getMessage()
                ),
                301
            );
        }

Any help is appreciated.

Sep
13
6 days ago
Activity icon

Started a new Conversation Implement Drag And Drop Editor With Laravel

Hello,

I'm wondering if you have a good guide or tutorial to use https://github.com/voidlabs/mosaico with laravel or another drag and drop html editor that I could Insert the html to the database with laravel.

Any info its really appreciated.

Activity icon

Replied to Integrating A Mass Email System Into A Laravel Web-app With Existing User-management

Hello do you have any tutorial how to send the html from mosaico to database with Laravel?

Activity icon

Replied to It's Laracast YouTube Channel Dead?

So the answer is yes, is dead.

Activity icon

Started a new Conversation It's Laracast YouTube Channel Dead?

There is no new videos since a year.

Sep
10
1 week ago
Activity icon

Replied to Laravel 8 Error: Target Class [HomeController] Does Not Exist

Please edit the full answer to choose as best answer.

Activity icon

Replied to Laravel 8 Error: Target Class [HomeController] Does Not Exist

Fixed, i had to add the property in the boot method like this:

public function boot()
    {
        $this->configureRateLimiting();

        $this->routes(function () {
            Route::middleware('web')
                ->namespace($this->namespace)
                ->group(base_path('routes/web.php'));

            Route::prefix('api')
                ->middleware('api')
                ->group(base_path('routes/api.php'));
        });
    }
Activity icon

Replied to Laravel 8 Error: Target Class [HomeController] Does Not Exist

Thanks for your response, I really appreciated but saddly I have a system where i have more than 4000 routes, this isnt a solution viable for me, im trying to do what Michal recommend and is in domcumention but isn't working :-(

If you prefer Laravel 7.x style controller route prefixing, you may simply add the $namespace property into your application's RouteServiceProvider.
Activity icon

Replied to Laravel 8 Error: Target Class [HomeController] Does Not Exist

Check:

class RouteServiceProvider extends ServiceProvider
{
    /**
     * The path to the "home" route for your application.
     *
     * This is used by Laravel authentication to redirect users after login.
     *
     * @var string
     */
    public const HOME = '/home';

    /**
     * If specified, this namespace is automatically applied to your controller routes.
     *
     * In addition, it is set as the URL generator's root namespace.
     *
     * @var string
     */
    protected $namespace = 'App\Http\Controllers';

web.php

<?php

use Illuminate\Support\Facades\Auth;
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');
});

Auth::routes();

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

Keep lanunching same error.

Activity icon

Replied to Laravel 8 Error: Target Class [HomeController] Does Not Exist

It didnt work i had to add it in the web.php like nakov published

Activity icon

Replied to Laravel 8 Error: Target Class [HomeController] Does Not Exist

So if i want to upgrade to Laravel 8 from 7 i have to change all my routes???????????? O.o

Activity icon

Started a new Conversation Laravel 8 Error: Target Class [HomeController] Does Not Exist

Hi, i just installed laravel 8, so I tryed to use Laravel/ui with vue but the home controller is giving me this error:

Illuminate\Contracts\Container\BindingResolutionException
Target class [HomeController] does not exist.
http://127.0.0.1:8000/home

I uset used this commands to install Laravel ui

$ composer require laravel ui

$ php artisan ui vue --auth

$ npm install 

$ npm run dev

After that use the migration but it didn't worked. Any help is apreciated.

Sep
01
2 weeks ago
Activity icon

Replied to Laravel Excel - Import CSV Data Relationed To Another Table

To anyone that in the future has the same problem, the correct way to doit isn't with models, instead you need to use collections: https://docs.laravel-excel.com/3.1/imports/collection.html

namespace App\Imports;

use App\User;
use Illuminate\Support\Collection;
use Maatwebsite\Excel\Concerns\ToCollection;

class UsersImport implements ToCollection
{
    public function collection(Collection $rows)
    {
        foreach ($rows as $row) 
        {
            User::create([
                'name' => $row[0],
            ]);
        }
    }
}
ยดยดยด
Aug
31
2 weeks ago
Activity icon

Started a new Conversation Laravel Excel - Import CSV Data Relationed To Another Table

I need to import some rows from a CSV file to a table, but this rows are relationed to another table to create the realtion of two registers. Thos relations are created by a field ID autoincremental.

I have 3 tables involved

  1. tbl_party Relationed tbl_party_employee,
  2. tbl_employee Relationed to tbl_party_employee,
  3. tbl_party_employee The table where i created the relations between 2 tables.

This is the method where my rows are setted to register

 public function model(array $row)
    {
       
          return new Contact(
              [
                    'user_id' => $this->userId,
                    'subscriber_email'     => $row[0],
                    'subscriber_name'      => $row[1],
                    'subscriber_lastname'  => $row[2],
                    'subscriber_phone'     => $row[3],
                    'whatsapp_number'      => $row[4],
                    'birth_date'    => $this->formatDateExcel($row[5]),
                    'custom_field1' => $row[6],
                    'custom_field1' => $row[7],
                    'custom_field1' => $row[8],
                    'custom_field4' => $row[9],
              ]
          );   
    }

Any help to do this is appreciated.

Activity icon

Replied to Laravel Maatwensite Excel Import From Parent Child Relationship

Have the same problem, i have a file to import but the rows are relationed by autoincremental id in another table and i dont know how to create the double insert.

Jun
17
3 months ago
Activity icon

Replied to Adding A Condition To Auth Login

in what file can I do that?