munazzil

munazzil

Member Since 1 Year Ago

Colombo

Trainee Software Developer at multiblity.com

Experience Points 39,450
Experience Level 8

550 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 34
Lessons
Completed
Best Reply Awards 36
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 Sep
3 days ago

munazzil left a reply on NotFoundHttpException Error

Can you try below code in your command prompt?,

     php artisan route:list
11 Sep
4 days ago

munazzil left a reply on Select2: How To Convert Array To Collection?

Can you dd() and check what goes wrong over here?,

    if ($users = $request->input('users'))
 {
   foreach($users as $user)
   {
     dd($user);
   }
 }

munazzil left a reply on Trying To Get Property 'name' Of Non-object

Use your controller function as like below replace where by with,

        $orderItems = CartItem::with('admin_order_id')->paginate(5);
09 Sep
6 days ago

munazzil left a reply on I Want To Display Latest Posts On My Laravel Home Page

If your are using paginate() then no need to use limit(),

  return $query->latest()->paginate(15);
04 Sep
1 week ago

munazzil left a reply on Prod Id

Is that your function model name is Product or else as like function name,and if you are use protected $guarded in your model then every data has been coming from there if you are using protected $fillable then which you allowed data only coming.

          public function products_details(Product $product)

             {
                 //
             }
03 Sep
1 week ago

munazzil left a reply on Error When Making A New Model

In this command you can create a table with migration then without -m try to create only model,

       php artisan make:model Message

munazzil left a reply on Error When Making A New Model

Try with user_permissions remove the s from table name.

munazzil left a reply on Error When Making A New Model

You have to remove unsingned() and run because if you use that,that will remove the primary key , Without primary key relationship won't work,

         $table->bigInteger('user_id');

munazzil left a reply on How To Migrate A Table

You have to keep below three table same as like bigInteger,

    $table->bigInteger('id')->primary();
    $table->bigInteger('user_id')->unsigned();
    $table->bigInteger('customer_id')->unsigned();

munazzil left a reply on Trying To Get Property 'dept_name' Of Non-object Laravel 5.8

Can you show the results for check as like below in controller and display the results over here,

      public function index()
    {
       $calls = Call::all();
       dd($calls);
       return view('test', ['calls' => $calls]);
    }

munazzil left a reply on Illuminate \ Database \ QueryException (HY000) SQLSTATE[HY000]: General Error: 1364 Field 'p_id' Doesn't Have A Default Value (SQL: Insert Into `prod_cats` (`updated_at`, `created_at`) Values (2019-09-03 05:18:24, 2019-09-03 05:18:24))

Your using in the function as $req but in the create function your calling request change as like below and check,

   public function store1(Request $request)
            {
            //dd($req->all());
            prod_cat::create([
                'p_id'=>$request('p_id'),
                'c_id'=>$request('c_id'),
               ]);

            // other codes

            }
02 Sep
1 week ago

munazzil left a reply on Migration Only Adds First Item Of Array

yeah so true then you guys please give a good solution I am waiting @rhand @snapey,Thank you for your kind advice I will learn laravel ASAP.@shez1983

munazzil left a reply on Migration Only Adds First Item Of Array

Change hasmany() to belongsToMany()

public function users()
   {
    return $this->belongsToMany(User::class);
    }
30 Aug
2 weeks ago

munazzil left a reply on Is This A Good Idea To Use The HTML Forms With Laravel Forms ?

For personal opinion and some kind of expert has suggested that, prevent using laravel collective form and use the html forms because so many errors has occur in this form and it was outdated you can have a look in laravel collective form in laracast forum question and answers.

munazzil left a reply on How To Pass Variable From Register Controller

Have you use as like below top of your controller,

      use App\Categories;

and try as like below in your CMD,

      php artisan route:list

munazzil left a reply on Getting 404 Error?

Can you show your api.php? and exact error message over here.

munazzil left a reply on Migration Only Adds First Item Of Array

You have to add like this in your role model and then used whatever you have posted over here,because you haven't created any relationship with that,

   public function roles()
           {
              return $this->belongsToMany('App\Role');
           }

munazzil left a reply on Migration Only Adds First Item Of Array

Try something like below,

     DB::table('roles')->insert(
        [
            'name' => ['administrator','editor','super-administrator'],
        ]
    );

munazzil left a reply on Trying To Get Property 'dept_name' Of Non-object Laravel 5.8

I am assuming that you have to use another foreach condition to get dept_name,

@foreach( $department as $dept)

     <td>{{$dept->dept_name }}</td>

@endforeach()

munazzil left a reply on Illuminate \ Database \ QueryException (23000) SQLSTATE[23000]: Integrity Constraint Violation: 1048 Column 'c_id' Cannot Be Null (SQL: Insert Into `prod_cats` (`p_id`, `c_id`, `updated_at`, `created_at`) Values (1, ?, 2019-08-30 04:46:52, 2019-08-30 04:4

Just remove your prod_cat model from protected $fillable=[] and add to the prod_cat model protected $guarded=[] and that check your migration or database c_id can be nullable as like below else you have to insert a value for that,

  $table->increments('c_id')->nullable();

munazzil left a reply on Trying To Get Property 'headers' Of Non-object

I think it should be header remove the s otherwise you haven't pass the the correct variable as a parameter.

29 Aug
2 weeks ago

munazzil left a reply on How To Store Images ?

Check your database that default value thing and change like below instead of $fillable,

      protected  $guarded=[ --all fields--  ];

munazzil left a reply on How To Store Images ?

Is that your path is correctly define? try with below command,

   php artisan storage:link

munazzil left a reply on Method Not Allowed On Axios Post Request With Vue And Laravel

I am assuming your trying to update the things and you have to use put instead of post, and can you show your api.php?

            axios.put('projects',

munazzil left a reply on ErrorException (E_ERROR) Undefined Variable: Product (View: C:\xampp\htdocs\check\resources\views\prodview.blade.php)

If you have problem with url then type as like below in your command promt and show the result here,

    php artisan route:list

with that use below query us all() instead of get(),

     $product=product::all();

munazzil left a reply on How To Define A Protected $primaryKey Property For Composite Key

You can define in your migration table as well,

     $table->string('Military_No')->primary();
     $table->string('classification_code')->primary();
26 Aug
2 weeks ago

munazzil left a reply on Sometimes View Doesnt Load Completely

Check with below commands in your CMD, may be it could be browser cache error,

  php artisan route:clear
  php artisan view:clear
  php artisan cache:clear
22 Aug
3 weeks ago

munazzil left a reply on Storage Url Is Not Working On Windows

Change your storage path in your controller function remove public/,

      $path = $request->image->storeAs('images', $fileName);

munazzil left a reply on Storage Url Is Not Working On Windows

Check with below command sometimes you may use api.php,

   php artisan route:list

munazzil left a reply on ErrorException (E_ERROR) Trying To Get Property 'p_name' Of Non-object (View: C:\xampp\htdocs\product\resources\views\prodview.blade.php)

Use as like below in controller,

    use App\product;   


   public function addpd()
        {
        $product=product::get();
        return view('addprod',compact('product'));
        }

and in the blade use as like below and check because you have two or more data only can be use @foreach otherwise remove it and check,

                     <tr>
                     <td>{{$product ->p_name}}</td>
                     <td>{{url('/')}}/$product ->image}}</td>
                        
                    </tr>

munazzil left a reply on ErrorException (E_ERROR) Trying To Get Property 'p_name' Of Non-object (View: C:\xampp\htdocs\product\resources\views\prodview.blade.php)

Can you show your Product model?

with that can you dd($product); after the controller function and display the result over here.

munazzil left a reply on ErrorException (E_ERROR) Trying To Get Property 'p_name' Of Non-object (View: C:\xampp\htdocs\product\resources\views\prodview.blade.php)

You have to use your model product as Product P should be capital as like below,

 use App\Product;   


   public function addpd()
            {
            $product=Product::get();
            return view('addprod',compact('product'));
            }
20 Aug
3 weeks ago

munazzil left a reply on Query Search From Two Related Tabels Using A Search Term 'q'

Have you set in your model primary key and foreign key?

09 Aug
1 month ago

munazzil left a reply on Laravel: Email Is Sent, But Not Received?

In your gmail account under the google apps there having Account with your profile image,visit there and do the needful.

munazzil left a reply on Laravel: Email Is Sent, But Not Received?

Have you using the localhost or dedicated server for this then you should, go to the Account->security->Less secure app access to on because it was default as off if you used localhost.

munazzil left a reply on ReflectionException (-1) Class Post Does Not Exist

You have to use your edit method as like below and no need to pass post it has been already passed through parameter,

    public function edit(Post $post)
    {
    $categories = Category::pluck('name', 'id');
    return view('admin.post.edit',compact('categories'));
    }
08 Aug
1 month ago

munazzil left a reply on How To Fix The Disappearance Of Bootstrap Template From My Laravel Project

Are you using auth function then go with below one,

   localhost/books/public/login

munazzil left a reply on Missing Resource Route

Can you check in your CMD as like below command,

      php artisan route:list
02 Aug
1 month ago

munazzil left a reply on Update Quantity

You have t change this line for get ```$new_quantity = $request->all()['add_quantity'] ;```` as like below,

        $product->update(['quantity'=>$request->quantity]);
        
        $new_quantity = $request->add_quantity ;

munazzil left a reply on How To Redirect After Login In Laravel 4.2?

Thank you @tykus I don't even have any idea about 4.X version configuration and operation.

munazzil left a reply on How To Redirect After Login In Laravel 4.2?

Have you used any middleware in your controller function?

31 Jul
1 month ago

munazzil left a reply on ERR_TOO_MANY_REDIRECTS

Then keep as like below then,

       protected $redirectTo = '/';

munazzil left a reply on How To Redirect After Login In Laravel 4.2?

Check your Logincontroller and change as like below,

         protected $redirectTo = '/home';

munazzil left a reply on ERR_TOO_MANY_REDIRECTS

Check your Logincontroller and change below one with your preference,

           protected $redirectTo = '/Login';