munazzil

munazzil

Member Since 1 Year Ago

Colombo

Trainee Software Developer at multiblity.com

Experience Points 25,300
Experience Level 6

4,700 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 20
Lessons
Completed
Best Reply Awards 21
Best Reply
Awards
  • Start Your Engines Achievement

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • First Thousand Achievement

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • One Year Member Achievement

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • Two Year Member Achievement

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • Three Year Member Achievement

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • Four Year Member Achievement

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • Five Year Member Achievement

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • School In Session Achievement

    School In Session

    Earned when at least one Laracasts series has been fully completed.

  • Welcome To The Community Achievement

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • Full Time Learner Achievement

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • Pay It Forward Achievement

    Pay It Forward

    Earned once you receive your first "Best Reply" award on the Laracasts forum.

  • Subscriber Achievement

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • Lifer Achievement

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • Laracasts Evangelist Achievement

    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 Achievement

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • Laracasts Veteran Achievement

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • Ten Thousand Strong Achievement

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • Laracasts Master Achievement

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • Laracasts Tutor Achievement

    Laracasts Tutor

    Earned once your "Best Reply" award count is 100 or more.

  • Laracasts Sensei Achievement

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • Top 50 Achievement

    Top 50

    Earned once your experience points ranks in the top 50 of all Laracasts users.

18 Apr
6 days ago

munazzil left a reply on Add Image As Background

I think here having simple steps follow that,

https://www.w3schools.com/cssref/pr_background-image.asp

munazzil left a reply on Status 500, Internal Server Error In Api Using Fetch

I think you have some type error. var metodo = 'POST'; Change it to method as like below.

var method= 'POST';

and

method= 'PUT';

munazzil left a reply on Login User Data Not Fetching On New Request

Have you used this in your controller function and you can access the 'auth' session,By adding top of your controller functions.

public function __construct()
      {
          $this->middleware('auth');    
     }

munazzil left a reply on Select With Over 10.000 Records

Some point of view use index() in your database column. Because it makes faster result.

munazzil left a reply on Cloning My Project , NPM Is Not Rendering All The Js Code Properly

@SIANGBOON - @siangboon Thank you for your advice. @wilk_randall Of course Then why you guys give him better advice to overcome from his trouble and @maverickchan - You are coming here to just insult me haha waste of time go and give him a solution i think in this forum i have come across over five question similar like this no one provide a solution until now Good Work insult yourself first?.

munazzil left a reply on Php Artisan Serve ErrorException : Chdir(): No Such File Or Directory (errno 2)

@behnampmdg3 Just try with below commands

    php artisan cache:clear
    php artisan view:clear

else run composer update with below code

    composer update --no-scripts

munazzil left a reply on Would Like To Know Developers Experience(Coding) And Age?

@JLRDW - @primordial Thank you and @jlrdw Thank you for Sharing your experience it makes us very deep understanding,which you said 'cut and paste' :).

17 Apr
1 week ago

munazzil left a reply on Cloning My Project , NPM Is Not Rendering All The Js Code Properly

Use this is in your master.blade.php or main.blade.php and check.

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

munazzil left a reply on Data Isn't Showing On Page

You have to see your out put you have to use below command in your CMD,

   php artisan serve

and visit below link

  http://localhost:8000/users

munazzil left a reply on Data Isn't Showing On Page

@developer_ Have you followed laravel passport documentation?,and your using vue.js version 2.

munazzil left a reply on How To Paginate Posts From Category

In your blade you have to use after what @sergiu17 has suggested.

        {!! $posts ->links() !!}

munazzil left a reply on Auth::user() Returns Null Value

Simple thing your 'middleware' type error,

$this->middleware(function($request,$next){ //here
$this->user=Auth::user();
return $next($request)
})

else just remove the $this because it can't be called,

    $this->middleware(function($request,$next){ //here
    $user=Auth::user();
    return $next($request)
    })

munazzil left a reply on Auth::user() Returns Null Value

In your middleware your missing variable assign for user change as lie below,

    $this->middleare(function($request,$next){
$this->$user=Auth::user();
return $next($request)
    })

munazzil left a reply on Would Like To Know Developers Experience(Coding) And Age?

@BOBBYBOUWMANN - My question is that i would like to know this forum members age and experiences because some sort of things.

munazzil started a new conversation Everyone Would Like To Know Developers Experience And Age?

In this forum there are lot of developers, Because of that we can reply or ask question according to there experiences and age.

munazzil left a reply on Associate Not Working

Try with below one

    Auth::user()->license()->with($license);

else

         Auth::user()->license()->has($license);

munazzil left a reply on Data Isn't Showing On Page

@bobbybouwmann You mean below command.

 npm run dev

munazzil left a reply on Php Artisan Serve ErrorException : Chdir(): No Such File Or Directory (errno 2)

Have you changed the config/app.php development to as like below

     'env' => env('APP_ENV', 'production'),

munazzil left a reply on Php Artisan Serve ErrorException : Chdir(): No Such File Or Directory (errno 2)

According to this path

   chdir($this->laravel->publicPath());

in vendor/laravel/framework/src/Illuminate/Foundation/Console/ServeCommand.php To :

   chdir('/');
16 Apr
1 week ago

munazzil left a reply on Laravel Relation Query Taking Too Much Time To Load

->has('attendance') use instead of this,

->with('attendance')

else

 return $query->where('school_id', $this->communication->school_id)->with('attendance');

munazzil left a reply on Laravel Upgrade To 5.8 Error

Just using import download every databases to your Machine,Copy every project from htdocs to your machine after install latest version of xampp and use it because in future you will need it anyway, Rather than doing later better to upgrade the xampp version now.

munazzil left a reply on Laravel Relation Query Taking Too Much Time To Load

Check with below query use the limit(),

->whereBetween('scan_date', array('2019-04-05', '2019-04-12')->limit(100)->get());

munazzil left a reply on Returning A View Instead Of A Route

return view means under the resources/view Folder path return route means which include in web.php. give the correct view path to get the page.

munazzil left a reply on SQLSTATE[42000]: Syntax Error Or Access Violation: 1059 Identifier Name ' ' Is Too Long

According to the Mysql, character should be 64 or less than that.

munazzil left a reply on Like Search Is Not Working Properly In Eloquent

Your using when and also there is query has two times.Use as like below and check.

     ->when(!empty($name), function($query) use ($name){
            return $query->where('infos.name', 'like', $name.'%');
               
        })
12 Apr
1 week ago

munazzil left a reply on Which Countries Have Professional Software Developers(Freelancing)?

@CMDOBUENO - Thank You very much yes I know sometime I was providing out of the question, Answers because no one look on that ,I don't provide answers without check by myself except sometimes sorry for the inconvenience caused.

munazzil left a reply on Which Countries Have Professional Software Developers(Freelancing)?

@CMDOBUENO - Thank You for your suggestion. and I hope that you two could provide my some kind of problem which I have posted in this forum because I think that you two were geniuses than tykus and snappy and cronix.and hopefully I didn't get solution for that.

munazzil left a reply on OnEachSide(2) In Pagination Not Working For Me In Laravel 5.8

Your using this before the end of your

     {{ $fundations->onEachSide(3)->links() }}

and also check with $fundations = Fundation::orderBy('id', 'desc')->paginate(1); this paginate because it may be >1 check with below.

   $fundations = Fundation::orderBy('id', 'desc')->paginate(2);

munazzil left a reply on [5.8] Can't Resolve Instance From Service Container

You have mention that your using PHP Version: 7.1 Because of that error you have to use i think atleast PHP >= 7.1.3 or above according to documentation.

munazzil left a reply on Response->json($array) Giving Out Too Much Input And Not Just Json?

In your function your passing only $user you have to call correct parameter as like below.

      protected function authenticated(Request $request,User $user)

munazzil left a reply on Guys Need A Big Suggestion For Login Permission For Different Users Laravel

I can suggest a solution for you is you can use multiple if condition and limited the permissions.refer below one.

https://laracasts.com/discuss/channels/laravel/display-data-based-on-user-role

munazzil left a reply on Bypass Https 301 Redirect For Specific Urls

Use as like below

       location / {
    return 301 url:https://$host$request_uri;
     }

munazzil left a reply on When I Download Project From GIT And Used In Local I Got Following Error?

I have two projects one is laravel 5.3 and one is laravel 5.4 what should i do but my current project in localhost 5.6 works perfectly.

munazzil started a new conversation Which Country Have Professional Software Developers?

Myself from Sri Lanka and We are head to head with other countries other's from?

munazzil left a reply on Treeview With ---

Try as like below in your controller not all() use get()

     $allCategories = Pool::pluck('title','id')->get();

munazzil left a reply on When I Download Project From GIT And Used In Local I Got Following Error?

Same error shows with ,

      c:\xampp\htdocs\lns-web-master>composer install

You are running Composer with SSL/TLS protection disabled. Loading composer repositories with package information Installing dependencies (including require-dev) from lock file Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. Run update to update them. Nothing to install or update Package illuminate/html is abandoned, you should avoid using it. Use laravelcollective/html instead. Package phpoffice/phpexcel is abandoned, you should avoid using it. Use phpoffice/phpspreadsheet instead. Generating autoload files

[RuntimeException] Could not scan for classes inside "C:\xampp\htdocs\lns-web-master\vendor/maatwebsite/excel/src/Maatwebsite/Excel" which does not appear to be a file nor a folder

install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--no-suggest] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--ignore-platform-reqs] [--] []...

munazzil left a reply on When I Download Project From GIT And Used In Local I Got Following Error?

Then when I visit project/public following error display in browser.

    Fatal error: Uncaught Error: Class 'Illuminate\Foundation\Application' not found in C:\xampp\htdocs\lns-web-master\bootstrap\app.php:14 Stack trace: #0 C:\xampp\htdocs\lns-web-master\public\index.php(22): require() #1 {main} thrown in C:\xampp\htdocs\lns-web-master\bootstrap\app.php on line 14

munazzil left a reply on When I Download Project From GIT And Used In Local I Got Following Error?

@snapy Can you please tell me with this i was in very troube.

{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"type": "project",
"require": {
    "php": ">=5.6.4",
    "laravel/framework": "5.3.*",
    "doctrine/dbal": "^2.5",
    "illuminate/html": "^5.0",
    "laravelcollective/html": "^5.3",
    "nesbot/carbon": "^1.21",
    "maatwebsite/excel": "^2.1",
    "barryvdh/laravel-dompdf": "^0.8.0",
    "h4cc/wkhtmltopdf-amd64": "0.12.x",
    "h4cc/wkhtmltoimage-amd64": "0.12.x",
    "barryvdh/laravel-snappy": "^0.4.0"
},
"require-dev": {
    "fzaninotto/faker": "~1.4",
    "mockery/mockery": "0.9.*",
    "phpunit/phpunit": "^5.3",
    "symfony/css-selector": "3.1.*",
    "symfony/dom-crawler": "3.1.*"
},
"autoload": {
    "classmap": [
        "database"
    ],
    "psr-4": {
        "App\": "app/"
    }
},
"autoload-dev": {
    "classmap": [
        "tests/TestCase.php"
    ]
},
"scripts": {
    "post-root-package-install": [
        "php -r \"file_exists('.env') || copy('.env.example', '.env');\""
    ],
    "post-create-project-cmd": [
        "php artisan key:generate"
    ],
    "post-install-cmd": [
        "Illuminate\Foundation\ComposerScripts::postInstall",
        "php artisan optimize"
    ],
    "post-update-cmd": [
        "Illuminate\Foundation\ComposerScripts::postUpdate",
        "php artisan optimize"
    ]
},
"config": {
    "preferred-install": "dist"
}

}

munazzil left a reply on When I Download Project From GIT And Used In Local I Got Following Error?

With that i don't have a documentation for that project.How do i know what are the packages that had been install for this project sometimes error might occur because of that?

11 Apr
1 week ago

munazzil left a reply on Dropdown Menu Does Not Use Css

I think you have to use as like below script in your app.blade.php.

       <link href="{{ mix('css/app.css') }}" rel="stylesheet" type="text/css">

munazzil left a reply on Display Time In Edit Form.

Try with below one if any error post here.

     <input type=“time” value=“{{\Carbon\Carbon::parse($record->time)}}“>

munazzil left a reply on Laravel Project In GIT, Pull Request Causing Problems

Have check that composer install in your pc and node.js?

try below command composer update --no-scripts

munazzil left a reply on API Route, Middleware And FormRequest

Your using firstOrCreate it throws error because it gives only first result use createorupdate.

     $customer = Customer::createOrUpdate(["name"=>$fullname,]);
     $customer->user()->createOrUpdate($request->all());
10 Apr
2 weeks ago

munazzil left a reply on Require NPM Package Not Found

Can you check below documentation for you reference.

https://vuejs.org/v2/guide/

09 Apr
2 weeks ago

munazzil left a reply on Require NPM Package Not Found

Yes other things as provide as document.

munazzil left a reply on Pass Multiple Arguments To A Policy Method That Don't Require Models

Then remove the contains and check like below one,

 public function create(User $user, $placeId)
 {
  return $user->accounts->pluck('placeId',$placeId);
 }

munazzil left a reply on NPM Install Not Working

@HJORTUR17 - You just try and see because in official site also they provide this link.

munazzil left a reply on Require NPM Package Not Found

I got to know and I have been using.mention as like below code in your home.blade.php or main.blade.php.and you can run command run npm dev.(official site also mention)

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