Ishatanjeeb

Ishatanjeeb

Member Since 3 Years Ago

Dhaka

Experience Points 146,400
Experience Level 30

3,600 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 1375
Lessons
Completed
Best Reply Awards 9
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.

31 Oct
4 months ago

Ishatanjeeb left a reply on Upload File With Form

You make mistake here,please replace your form by

<div class="form-group ">
       {!! Form::label('category','Category') !!}
       {!! Form::text('cat',null,['class'=>'form-control','v-model'=>'cat']) !!}
</div>
 <div class="form-group ">
        {!! Form::label('image','Photo') !!}
        {!! Form::file('image',['class'=>'form-control','v-model'=>'image','v-model'=>'file','ref'=>'file','v-on:change'=>'handleFileUpload()') !!}
 </div>

Ishatanjeeb left a reply on What Is The Difference Between An Image And A Watermark Image In Laravel ?? How To Use In Project ? Whats The Output ?

I think this link should help you-

http://php.net/manual/en/image.examples.merged-watermark.php

Ishatanjeeb left a reply on How To Create A Custom Log File?

try this one

public function testing()
{
 Log::useFiles(storage_path().'/logs/mycustom.log');
 Log::info('Hello world!');
}

Ishatanjeeb left a reply on Url Structure Problem In Controller

is that your slug unique?

Ishatanjeeb left a reply on How To Create A Custom Log File?

try this one

public function testing()
{
 Log::useFiles(storage_path().'/logs/mycustom.log');
 Log::info('Hello world!');
}

Ishatanjeeb left a reply on Composer Update Hangs

share your package.json file

Ishatanjeeb left a reply on How To Create A Custom Log File?

To write a log file to another location, use the method useDailyFiles or useFiles, and then info to log to the log file at the path you just specified something like below:

    Log::useFiles(storage_path().'/logs/name-of-log.log');
    Log::info([info to log]);

Ishatanjeeb left a reply on Guzzle Hangs Laravel Application

what kind of response you return for your api?

28 Oct
4 months ago

Ishatanjeeb left a reply on PHP Fatal Error: Uncaught Error: Class 'Monolog\Handler\StreamHandler' Not Found

You can solve this issue by changing "minimum-stability" from "dev" to "stable" in composer.json. Then running composer update.

Ishatanjeeb left a reply on How Can I Put "paginate" Method In My Controller Index Function?

Try this one

$vehicles = Vehicle::with('uploads')->sort(function ($a, $b) {
        if ($a->adtype !== $b->adtype) {
            return $b->adtype - $a->adtype;
        }
    
        return $a->adtype
            ? ($a->updated_at->gt($b->updated_at) ? -1 : 1)
            : ($a->created_at->gt($b->created_at) ? -1 : 1);
    })->paginate(10);

Ishatanjeeb left a reply on How Can I Put "paginate" Method In My Controller Index Function?

Try this one

$vehicles = Vehicle::with('uploads')->sort(function ($a, $b) {
        if ($a->adtype !== $b->adtype) {
            return $b->adtype - $a->adtype;
        }
    
        return $a->adtype
            ? ($a->updated_at->gt($b->updated_at) ? -1 : 1)
            : ($a->created_at->gt($b->created_at) ? -1 : 1);
    })->paginate(10);

Ishatanjeeb left a reply on I'm Stuck With Many To Many Relationship

pivot table should be look like this

event_user:id,user_id,event_id


Ishatanjeeb left a reply on How Can I Put "paginate" Method In My Controller Index Function?

Try this one

$vehicles = Vehicle::with('uploads')->get()->sort(function ($a, $b) {
        if ($a->adtype !== $b->adtype) {
            return $b->adtype - $a->adtype;
        }
    
        return $a->adtype
            ? ($a->updated_at->gt($b->updated_at) ? -1 : 1)
            : ($a->created_at->gt($b->created_at) ? -1 : 1);
    })->paginate(15);

Ishatanjeeb left a reply on Error MethodNotAllowedHttpException

@DEStroyerll Replace your code and check if you have problem tell me-

$this->validate($request, [
              
                'name' => 'required|max:255',
                'email' => 'required|email',
                'text' => 'required'
            ]);
 $data = [
            'name'        => $request->input('name'),
            'email' => $request->input('email'),
            'body'        => $request->input('text')
        ];

Ishatanjeeb left a reply on PHP String Manipulation

If your others string values are static then you can also use string sunstr function like-


 string substr ( string $string , int $start [, int $length ] )


21 Oct
5 months ago

Ishatanjeeb left a reply on How To Find A Database Row That Matches A String?

Try this-

$usernames = Users::all();

foreach ($MyArray as $Array) {
    foreach ($usernames as $user) {
        if (strpos($Array['string'], $user->username) !== false) {
            echo 'found it!';

            break;
        }
    }
}

Ishatanjeeb left a reply on How To Find A Database Row That Matches A String?

what is the result of below code-

$usernames = Users::select('username')->get();

dd($usernames);


foreach ($MyArray as $Array) {
    foreach ($usernames as $username) {
        if (strpos($Array['string'], $usernames->username) !== false) {
            echo 'found it!';

            break;
        }
    }
}

Ishatanjeeb left a reply on Is Docker Good For A Real Time System?

What kind of app you build?Docker can not able to increase your app performance.

Ishatanjeeb left a reply on How To Fix NotFoundHttpException No Query Results For Model [App\Upload] 8

Your named routes should be look like this-

Route::get('myads/{id}/edit', [
    'as'=> 'vehicles',
        'uses' => '[email protected]'
]);
17 Oct
5 months ago

Ishatanjeeb left a reply on Call To Undefined Method

Set the Notifiable trait in your User mode.


Illuminate\Notifications\Notifiable
16 Oct
5 months ago

Ishatanjeeb left a reply on Use GroupBy With Paginate Is This Possible?

groupBy the parent_id

$article = Article::FindOrFail($id)->first();
$comments = Comment::Where('article_id', $article)
    ->groupBy('parent_id')
    ->paginate(100)

Ishatanjeeb left a reply on Edit Passing Id

Your model should be like this-

public function editRecipient(Request $request) {

        $rpt_id =  RecipientModel::findOrFa($rpt_id)->first;
    .....
        ....
    }
15 Oct
5 months ago

Ishatanjeeb left a reply on Redirect() After Auth::loginUsingId() Isn't Working!!!

@EddiePuig what result show when run below code?

if($user = User::where('user', $request->user)->exists()){ 
    dd("condition match"); 
    Auth::loginUsingId($user->id,true); 
    return redirect()->route('dash');

        } else {
            $user = User::create([
                'user' => $request->user,
            ]);

            dd("not match");
            Auth::loginUsingId($user->id);
            return redirect()->route('dash');

        }

Ishatanjeeb left a reply on Barryvdh/laravel-debugbar Does Not Appear In Laravel5.6

For your local config run this command on your terminal


php artisan vendor:publish --provider="Barryvdh\Debugbar\ServiceProvider"

Ishatanjeeb left a reply on How To Set Up A BelongsTo Relationship Properly?

Your eloquent query should something like below.Hope you get some result :)

 $user =  App\Models\Users::where('id', 23))->firstOrFail();
14 Oct
5 months ago

Ishatanjeeb left a reply on Problems With Data Query

fetch only the first record by the change like that-

$usuarios=usuarios::where("usuario_ad","=",$request->usuario_ad)->get()->first();

Ishatanjeeb left a reply on Can Not I Display Pivot Table In Blade Laravel

Your code should look like this

@foreach($users as $key =>$user )
    @foreach($user->categories as $cat)
                   <li>{{$cat->name}}</li>
         @endforeachch
@endforeachch
13 Oct
5 months ago

Ishatanjeeb left a reply on Oh-my-zsh Laravel 5 Plugin Available

It's make you terminal nice and beautiful. :)

Ishatanjeeb left a reply on How To Update Table Values From 0 To 1 When I Click Form Submit Button In Laravel?

I think this link should be helpful for your project to done that type of issues- https://laravel.com/docs/5.7/redis

Ishatanjeeb left a reply on Validating Reset Password Link Using Vue

What kind of error shows?

15 Aug
7 months ago

Ishatanjeeb left a reply on Create Connection With Schema

sorry for late replay.do you still have problem?

31 Jul
7 months ago

Ishatanjeeb left a reply on Create Connection With Schema

did you config your .env file?

28 Mar
11 months ago

Ishatanjeeb left a reply on Can't Log Out In Laravel 5.6

did you assign auth check on your route controller?

25 Mar
11 months ago

Ishatanjeeb left a reply on Use Laravel-mix With Development Server

Did you install cross-env?

npm install cross-env --save-dev

26 Feb
1 year ago

Ishatanjeeb left a reply on After Adding Vuejs File Select2 Conflict

You can try this

https://vuejs.org/v2/examples/select2.html

Ishatanjeeb left a reply on After Adding Vuejs File Select2 Conflict

ask your question appropriately then we can give you the correct solution.What is the problem now?

Ishatanjeeb left a reply on After Adding Vuejs File Select2 Conflict

do you want to bind sub_category data by using the vuejs?

10 Jan
1 year ago

Ishatanjeeb left a reply on Why Onchange Function Calling From Blade To Script Is Not Working

what did you do?please share your code.

Ishatanjeeb left a reply on How To Yield Title When I My Header.blade.php Is @include In The App.blade.php?

You can try this

app.blade.php

<head>
        <title>App Name - @yield('title')</title>
</head>

header.blade.php

@section('title', 'Your page title')

Ishatanjeeb left a reply on How To Deploy Laravel On OVH Perso

Check your database and make sure you migrate your databases.

Ishatanjeeb left a reply on Route Not Redirecting

try

class AdminLoginController extends Controller
{
    public function __construct(){

        $this->middleware('guest:admin');
    }

    public function showLoginForm(){

        return view('auth/admin-login');
    }

    public function login(Request $request){

        //validate the form input data
        $this->validate( request(), [
            'email' => 'required',
            'password' => 'required'

        ]);


        if(Auth::guard('admin')->attempt(['email' => $request->email, 'password' => $request->password], $request->remember)){

            return redirect()->intended('dashboard');

        }else{

            return redirect()->back()->withInput($request->only('email', 'remember'));

            }
        }
        
}

Ishatanjeeb left a reply on Two Route Patch To Same Controller But Two Different Methods

Make sure you define your three methods on BlogController.

Ishatanjeeb left a reply on Unable To Load Form/Html In Laravel 5.4.36 Version

show me your blade file code