munazzil

munazzil

Member Since 1 Year Ago

Colombo

Trainee Software Developer at multiblity.com

Experience Points 35,310
Experience Level 8

4,690 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 30
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.

18 Jul
19 hours ago

munazzil left a reply on I Have A 404 Error In My Web Server

Can you mark as solved then others could be see this. in the answer right hand corner there is a best answer button click on that.

munazzil left a reply on Trying To Get Property Laravel

Sometime you have to use two foreach to get the correct data from the array,

        @foreach ($mps as $mp)           
        <tr>
    @foreach ($mp as $mp1)
            <td>{{$mp1->nombre_pe}}</td>
    @endforeach
     <tr>
        @endforeach

munazzil left a reply on I Have A 404 Error In My Web Server

Have you update composer package or any packages or else any automated updating process on there check with old configs.

munazzil left a reply on Trying To Get Property Laravel

Can you check in your view what are you getting using below command,

              <td>{{  $mp  }}</td>
17 Jul
1 day ago

munazzil left a reply on How To Change Email In Laravel App?

Have your using any email packages or email sending format , Check your controller function having following email mymail11@gmail.com by any chance that email address has configured remove that and changed to the mymail22@gmail.com .

munazzil left a reply on I Facing (1/1) TokenMismatchException In VerifyCsrfToken.php Line 68 And If I Run Following Function {{session_status()}} Without Login So It Gives Me Session_id So If You Understand My Problem Then Help Me ?

Have you upload to to server and used below command,

php artisan key:generate

else try with below commands,

php artisan view:clear php artisan cahe:clear php artisan route:clear

munazzil left a reply on BelongsToMany Trying To Get Property 'id' Of Non-object Error

In your result there is no id having then you can check as like below,

     $categories = Category::all();

     dd($categories);

munazzil left a reply on Checking If Relation Exists In Blade

Use a true or false while using a if condition,

    @if($product->check($product->id) == true)

else use has instead of check,

   @if($product->has($product->id) == true)

munazzil left a reply on Relations With If Condition

If you want to get the data from a query use compact() function to return to the view as like below,

 public function midYearReview(){
    $templates = MidYearReviewTemplate::with('departmentDetails','designationDetails','goals')->get();
    dd($templates);
    return view('performancemanagementlayout.midyearreview',compact('templates'));
 }

munazzil left a reply on BelongsToMany Trying To Get Property 'id' Of Non-object Error

Can you dd($countries) in the controller function,

      public function create()
{
     $categories = Category::pluck('name', 'id')->all();
     $countries = Country::pluck('name', 'id')->all();
 
      dd( $countries,$categories);
      return view('admin.products.create', compact('categories', 'countries'));
 }

munazzil left a reply on BelongsToMany Trying To Get Property 'id' Of Non-object Error

You have to use get() in below queries,

     $categories = Category::pluck('name', 'id')->get();
     $countries = Country::pluck('name', 'id')->get();
15 Jul
3 days ago

munazzil left a reply on Laravel/passport Authentication Problem

Then it could be problem with php version any way try below command as well,

   composer update dump-autoload
   composer update  --no-scripts

munazzil left a reply on Laravel/passport Authentication Problem

Have you used below command and checked?,

    php artisan key:generate

munazzil left a reply on Laravel Min Validation Not Working

Mark as solved the others could get this, in the answer right hand corner there is best answer option click on that.

munazzil left a reply on Replacement Of $fillable In Laravel 5.5

Yes you can use as like below but every data is coming from that,

      protected $guarded = [ ];
12 Jul
6 days ago

munazzil left a reply on Laravel Mail Working Locally But Not On Server

Use mail port 587`` or either465```,

     MAIL_PORT= 587 or 465

munazzil left a reply on Using FirstOrCreate On Relationship Cause Error

Try to use updateOrCreate instead of using firstOrCreate in your query.

munazzil left a reply on Laravel Min Validation Not Working

You can use your home.blade.php or main.blade.php below one and can get the error messages,

          @if ($message = Session::get('error'))
          <div class="alert alert-success">
          <p>{{ $message }}</p>
          </div>
          @endif

munazzil left a reply on Laravel Min Validation Not Working

You can refer official document as well,

https://laravel.com/docs/5.8/validation#rule-between

https://laravel.com/docs/5.8/validation#rule-digits-between

If you got a solution please mark as solved then others can find a solution, check answers right hand corner their is best answer option.

munazzil left a reply on Using FirstOrCreate On Relationship Cause Error

Use as like below because you wan't get that,

use top of controller function,

  use App\Name;

and function will be,

public function addTags(Name $name)       
    {
    $tag = $this->tags()->firstOrCreate($name);
    $this->tags()->attach($tag->id);
    }

munazzil left a reply on Laravel Min Validation Not Working

You have to use simple $request in your controller function,

    $request->has('data')) {
        $attributes = $request->validate([

       'device' => 'required|string|digits_between:6,8',
         'seqNumber' => ['required','numeric'],
            'data' => ['required','min:22']
        ]);

munazzil left a reply on Getting Form Submitted Continuously. I Want Form Submitted Only Once On Page Load

You can use onsubmit in below instead of onloadelse can define the time in the function,

    document.onsubmit=function()
    
    {
     document.getElementById('visitor').submit();
     event.preventDefault();
     document.history.back();
     }

munazzil left a reply on Not Getting The Same Result In Vue

You have to keep your server and localhost both in to same php version, And if not use below command in your CMD and check it,

    php artisan cache:clear
    php artisan view:clear
    php artisan route:clear
11 Jul
1 week ago

munazzil left a reply on Not Getting The Same Result In Vue

Have you check your server and localhost php versions and other configurations?

munazzil left a reply on Error While Storing Route ID

Then use as like below without using id,

      $review->restaurant_id=$request->route('_token');

munazzil left a reply on Check Request Method ?

Use as like below and can check,

public function store(Request $request)
    {
  
             dd($request->all());
   
     }

munazzil left a reply on Error While Storing Route ID

Can you provide the dd($request->all()) result here?

munazzil left a reply on How To Delete A Comment From Database?

Remove below one,

      $data['article'] = $article;

and use return view as like below,

    return view("admin.editEvent",compact('event_comm','article'));

and deletComment function use findOrFail() in query,

       $comment = \App\EventComment::findOrFail($id);

       $comment = \App\OpinionComment::findOrFail($id);

munazzil left a reply on Error While Storing Route ID

What kind of id your getting from route() and, Is it the token or number series.

munazzil left a reply on Sql Query Too Slow

In your migration table use index() for following tables date,created_at and id,and you can create index for mysql database tables as well if you like to do as manual,

      $table->integer('id')->index();

      $table->integer('created_at')->index();

      $table->integer('date')->index();

munazzil left a reply on Undefined Variable: Products For PDF

Top of controller use below

use App\Product;

Use as like below function then it could be easy if you pass the parameters,

  public function downloadPdf(Product $products)
      {

      $pdf = PDF::loadView('admin.pdf.product-pdf');

       return $pdf->download('catalogue.pdf');
      }

munazzil left a reply on Error After Validation

In your database your might set these fields as null check, Because some time some validation can't keep as null.

  "phone" => null
  "fax" => null
  "email" => null
  "info" => null

munazzil left a reply on Redirecting A Route

If you got the solution mark as solved in your right hand corner there is a button as best answer in the answer, then other can be able to look for a solution?

09 Jul
1 week ago

munazzil left a reply on Trying To Get Foraign Key Records Where Every Connected Records Are Deactive ( Laravel Elequent Query )

@johnbraun What you mean by? I think you have got drunk you can't see that he has provided dd($data) result, you thought that he don't have a controller function and seeking from idea from beginning? lol.

munazzil left a reply on Testing Laravel Route Hitting A Controller Method

Just use below command in your CMD you can get every single details of the App,

   php artisan route:list

munazzil left a reply on Query Failing On Prod Server But Not Local

I think you have missed to include in your controller below one,

   use App/SMSLog;

and if not clear browser cache,

      php artisan cache:clear
      php artisan view:clear
      php artisan route:clear
08 Jul
1 week ago

munazzil left a reply on Image Source Not Readable

In this remove the .jpg because the second one is a varaible,

       Input::file('photo')->move($destinationPath, "$id");
    $path = public_path("assets/images/profile/$id");

munazzil left a reply on Redirecting A Route

In your top of Controller function use as like below,

      Use App/Restaurant;

and in function use as like below,

     public function show(Restaurant $restaurant,$id)

munazzil left a reply on GetAuthPassword() Is Not Working.

In your model your using table name as like below,

     protected $guard = 'cliente'

in your query using table name as clientes

you can define table name as like below as well,

 protected $table= 'clientes'

munazzil left a reply on Redirecting A Route

Something like you want to get the id use like below,

      return redirect()->route('restaurant.view',$restaurant->id);

munazzil left a reply on SQLSTATE[HY000] [2054] Server Sent Charset Unknown To The Client

You have to change below things according to .env file because you have kept default things,

              'mysql' => [
    'driver' => 'mysql',
    'host' => env('DB_HOST', '127.0.0.1'),
    'port' => env('DB_PORT', '3306'),
    'database' => env('DB_DATABASE', 'root'),
    'username' => env('DB_USERNAME', 'root'),
    'password' => env('DB_PASSWORD', 'here_is_my_password'),
05 Jul
1 week ago

munazzil left a reply on What Is The Proper Way To Handle API Redirection

Can you check below command in your CMD?

      php artisan route:list

munazzil left a reply on The Page Has Expired Due To Inactivity.

Have you include this in your home.blade.php?

   <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/vue.js"></script>

and run below commands as well,

   npm run dev
   npm run watch

munazzil left a reply on The Page Has Expired Due To Inactivity.

Then it could be try with below artisan command if you got any new project,

         php artisan key:generate

munazzil left a reply on Base Table Or View Not Found

Your problem in here tasks()->create($task); change as like below,

          $task->create();
04 Jul
2 weeks ago

munazzil left a reply on Dynamic Arguments Not Working.

after you have run below codes to compile the changes,

 npm run dev

 npm run watch

munazzil left a reply on The Page Has Expired Due To Inactivity.

Try with below commands,

    php artisan cache:clear
    php artisan view:clear

    composer update --no-scripts
    composer dump-autoload

munazzil left a reply on Other Methods For All()

Check in blade as like below the tr tags,

   <div>{{ $payments ->links() }}</div>

and can you show what is the exact error do you getting?

03 Jul
2 weeks ago

munazzil left a reply on 413 Request Entity Too Large ( When Uplaoding Image )

Have you tried with below with that check your all images size,

   http {
  client_max_body_size 20M;         
 }