munazzil

munazzil

Member Since 10 Months Ago

Colombo

Trainee Software Developer at multiblity.com

Experience Points 19,520
Experience Level 4

480 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 9
Lessons
Completed
Best Reply Awards 18
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.

22 Feb
1 day ago

munazzil left a reply on Job Still Present In Horizon After ->delete() ?

Then pass the id

$this->job->delete($id)

munazzil left a reply on Job Still Present In Horizon After ->delete() ?

Try as like below.

          $this->$job->delete()

munazzil left a reply on SQLSTATE[HY000] [1045] Access Denied For User 'root'@'localhost' (using Password: )

First change this and check

     DB_HOST=127.0.0.1

and after change this and check

   DB_PORT=3305

munazzil left a reply on How To Go In Infinite Foreach If There Is A Child

You can go for a as like below example

 @foreach($root_folder['children'] as $key=>$directory)
<li class="nav-item sub-item">
  <a class="nav-link" href="#" data-type="0" data-path="{{ $directory->url }}">
    <i class="fa fa-folder fa-fw"></i> {{ $directory->name }}
  </a>
</li>
@endforeach

munazzil left a reply on Laravel Default Login Redirection Not Working

Can you show your app\Http\Middleware\RedirectIfAuthenticated.php ?

munazzil left a reply on Collection's 'search' Method Skipping Closure On The First Iteration

Use foreach inside the controller method.

munazzil left a reply on MethodNotAllowedHttpException In RouteCollection.php

Problem with your form your given 'action' instead 'route' in this line i have changed.

<div class="col-md-1">
  <form action="{{route('Employee\[email protected]', $po_item->id)}}" method="post">
     {{csrf_field()}}
  <input name="_method" type="hidden" value="DELETE">
  <button class="btn btn-danger" type="submit">Delete</button>
    </form>
  </div>

munazzil left a reply on MethodNotAllowedHttpException In RouteCollection.php

Change as like below and check. and show your POItem model over here?

 public function destroy(POItem $po_item,$id)
{        
    $po_item = POItem::findorFail($id);
    $po_item->delete();
    return back()->with('success','Information has been  deleted');
}

munazzil left a reply on Illuminate\Database\QueryException SQLSTATE[HYT00]: [unixODBC][Microsoft][ODBC Driver 17 For SQL Server]Login Timeout Expired

Just change this and check because your still in localhost.

DB_HOST=127.0.0.1

munazzil left a reply on MethodNotAllowedHttpException In RouteCollection.php

Can you provide the solution and can mark as solved.

munazzil left a reply on How Registration Table Name Print

Try as like below

@foreach($student as $std)
    {{$std->student_name}}
@endforeach

munazzil left a reply on Problem In Searching Using Book's Author - Eloquent Relationships

Use as like below function Show(Book $books, Request $request, Author $authors) $request['books'] = $books->with(['author' => function ($query) { $query->where('authors', 'like', "%geo%"); dump($query); ])->get(); }

munazzil left a reply on How To Assign Field From Another Model?

Can you show your Profile Model and Participant Model? What are you trying do with below one?

    $participant->ssn = $profile->ssn;

munazzil left a reply on MethodNotAllowedHttpException In RouteCollection.php

@ZASTER - Then check with resource route method.

Route::resource('/poitem', 'Employee\POItemController');

munazzil left a reply on How To Assign Field From Another Model?

But you have to assign in your first model or second model.

protected $guarded = [];
 protected $table = 'yourtablename';

munazzil left a reply on Laravel Default Login Redirection Not Working

Use as like below and check because middleware should be in last?

Route::namespace('User')->group(function () {
   Route::resource('delivery', 'DeliveryController')->middleware('auth');
      });

else check like this

Route::namespace('User')->group(function () {
   Route::resource('delivery', 'DeliveryController');
      })->middleware('auth');

munazzil left a reply on MethodNotAllowedHttpException In RouteCollection.php

Check with this because your passing in the form id and your using poitem

Route::delete('/poitem/{id}', 'Employee\[email protected]')->name('employee.poitem.destroy');

munazzil left a reply on Laravel 4 Pagination Links Return Empty Pages

Try with these link method?

    {!! $data->links() !!}
21 Feb
2 days ago

munazzil left a reply on MethodNotAllowedHttpException In RouteCollection.php

Can you check below command in your cmd and display result?

php artisan route:list
20 Feb
3 days ago

munazzil left a reply on Attribute [resoure] Does Not Exist.

You have to provide in your web.php as like below routes your given as resoure.

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

munazzil left a reply on Validate The GET Parameters

Don't use get use old and if not needed Input remove it.

munazzil left a reply on Order By Query Not Being Displayed Correctly On View

Try as like below

$pages = DB::table('pages')->orderBy('order_list', 10)->get();

munazzil left a reply on Order By Query Not Being Displayed Correctly On View

Can you show below code result in your controller?

dd($pages)

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

If this happen because of upgrade version of composer?

munazzil left a reply on Npm Install Maximum Call Stack Size Exceeded ??

I suggest you to use CDN for that in my case it solve that problem

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

munazzil left a reply on Get The ID Inside Custom FormRequest

Can you mark as solved. Check the answer right corner there were best answer option click on that.

munazzil left a reply on How To Get Back Original File Code After Running Production Command In Laravel Mix

Use as like below in your main.blade.php or home.blade.php

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

munazzil left a reply on Class "Input" Not Found.

Have you try to import this class in top of your controller.

use Illuminate\Support\Facades\Input;

munazzil left a reply on I'm Looking For A Lavarel Mentor (or Another Beginner To Get Started With)

Without knowing about your background. No one can't give a suggestion and would you like to learn through here?. Would you provide email and other contact details anyone can get in touch with you.

munazzil left a reply on Laravel Login Doesn't Seem To Work - Laravel 5.7

Your trying both login and logout to same redirect try as like below in your login controller.

protected $redirectTo = '/home';

munazzil left a reply on Get The ID Inside Custom FormRequest

Try as like below in your controller.

return $query->where('owner_id','=' ,$owner_id)->first();
18 Feb
5 days ago

munazzil left a reply on [Vue Warn]: Cannot Find Element: #app

This yield should be like this

<div>
@yield('content')
</div>

munazzil left a reply on How To Create An Edit Button In Vue.js And Laravel That Goes To Edit Url?

Unfortunately i can't get my edit form when i run npm run dev no any error occurred.

munazzil left a reply on Caching API Resources

You can use customize this function in above all function in controller.

function seoUrl($string) {

    $string = trim($string); // Trim String

    $string = preg_replace("/[^a-z0-9_\s-]/", "", $string);  //Strip any unwanted characters

    return $string;

}

munazzil left a reply on Auth()->user(): Trying To Get Property Of Non-object

Where are you getting this request and use as like below?

Top of your controller function.

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

and change controller as like below

public function create(Request $request){

$credentials = $request()->only('email', 'password'); if (\Auth::attempt($credentials)) { // dd(\auth()->user()->firstname); // prints "Jordan" return redirect()->action('Settings\[email protected]'); } //... }

munazzil left a reply on Request Return Null

Just try as like below your missing some data where are you getting this caming?

   public function update(Request $request, Camping $camping)
   {
          $data = $request->except('image_path');
          $data['image_path'] = $request()->file('image_path')->store('images', 'public');
          $camping->update($data);

          return redirect('/stjornbord/tjaldsvæði/breyta');
   }

munazzil left a reply on SQLSTATE[HY000] [2002] Connection Refused

Did you find a solution?

15 Feb
1 week ago

munazzil left a reply on How To Create An Edit Button In Vue.js And Laravel That Goes To Edit Url?

It goes to this route but data not showing.

http://localhost:8000/edit/1

munazzil left a reply on How To Create An Edit Button In Vue.js And Laravel That Goes To Edit Url?

I have to change anything in this code.

    <template>
<div>         
    <div class="panel panel-default" v-for="book in books">
        <div class="panel-heading">
            <span class="glyphicon glyphicon-user" ></span>
             {{ book.isbn }}
        </div>
        <div class="panel-heading">
            <p>{{ book.title }}</p>
        </div>
         <div class="panel-heading">
            <p>{{ book.price }}</p>
        </div>
        <div class="panel-body">
            <div class="col-md-2">
                <div class="thumbnail">
                  <img :src="book.filename">
                </div>
            </div>
        </div>  
        
        <a v-bind:href="'edit/'+book"> Edit </a>
        
        <a href="#" id="comments" @click="report(book.id)">Report</a>
        
    </div>
    
</div>   
</template>
<script>    
    export default {
    data() {
        return {
            books: [],
            endpoint: 'api/books'
        };
    },
    created() {
        this.fetch();
    },
    
    methods: {
        fetch() {
            axios.get(this.endpoint)
                .then(({data}) => {
                    this.books = data.data;                        
                });
            },
                report(id) {
                
            if(confirm('Are you sure you want to report this Book?')) {
                axios.put('api/books/'+id+'/report')
                .then(response => this.removeBook(id));
            }
        },
        removeBook(id) {
            this.books = _.remove(this.books, function (book) {
                return book.id !== id;
            });
         }
      } 
   }
 </script>

munazzil left a reply on How To Create An Edit Button In Vue.js And Laravel That Goes To Edit Url?

@realrandyallen i am passing book in my route the how can pass that in here?

munazzil started a new conversation How To Create An Edit Button In Vue.js And Laravel That Goes To Edit Url?

This is button tag in vue.js.

     <a v-bind:href="'edit/+id+'"> Edit </a>

This is the route

    Route::put('books/{book}', '[email protected]');

This is blade

    @section('content')

 <div class="container">
       <div class="row">
        <div class="col-md-12">
            <editform></editform>
        </div>
      </div>
     </div>
 @endsection

munazzil left a reply on Does Anybody Know The Right Syntax Here ? ;)

Amend your code as like below

public function index() { $id=\Auth::id(); $posts=post::orderBy('created_at','desc')->where('nutzer_id',$id)->paginate(8); //$posts=post::orderBy('created_at','desc')->take(1)->get(); return view('posts/meinedaten')->with('posts',$posts); }

14 Feb
1 week ago

munazzil left a reply on Request Whats This For?

You have to use as like this and request is your getting data from end user who have been filling data from a form in blade.php(view).

public function store(Request $request,Project $project) { $project->title = request('title'); $project->description = request('description'); return request('description'); }

munazzil left a reply on How To Get Back Original File Code After Running Production Command In Laravel Mix

Have you update npm

npm update

can you show in your bldae .js files inside the ?

munazzil left a reply on Getting The Login To Redirect To The Previous Page

You can use as like below.

   public function handle($request, Closure $next, $guard = null)
 {
  if (Auth::guard($guard)->check()) {
    return redirect('/login'); //wherever you want
 }

return $next($request);
 }

munazzil left a reply on Help Identify A BadMethodCallException

Can you show your controller have you mention as like below.above of your controller.

         use App\Job;