towhid

towhid

Member Since 2 Years Ago

Bangladesh

Experience Points 9,590
Experience Level 2

410 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 15
Lessons
Completed
Best Reply Awards 0
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.

21 Jul
2 days ago

towhid left a reply on My Local Server Address After Php Artisan Serve 127.0.0.1:8000

yes you are right - its simply but i was not recognized ... thank you

towhid started a new conversation My Local Server Address After Php Artisan Serve 127.0.0.1:8000

when i hit this ip address 127.0.0.1:8000 then show / address i have not root address route controller that's why i want to redirect others link like 127.0.0.1:8000/student or 127.0.0.1:8000/login page direct how i do that ? thanks in advancea

19 Jul
4 days ago

towhid left a reply on Toastr Doesn't Work At Laravel 5.6 Or Is It Laravelmix?

try to google i hope you will get your answer 2/ 3 times try to solve from google instruction thank you

18 Jul
5 days ago

towhid started a new conversation Multi User Type In One Table , One Dashboard But Want To Show Menu User Type Login Wise How To Do That ?

i have one table name user , i use laravel auth , there are thre type user admin, assistant and user , every one login same login panel , and same dash board , but i want to show dashborad menu user type wise ? how to do that ?

which way i will go ? thanks in advance

17 Jul
6 days ago

towhid left a reply on Want To Create User Table But I Don't Understand What Can I Do Create Customize User Table Or Use Laravel Built In Auth

yes i already created but don't know where i will again hang . btw could you please tell me if i use built in and use extra field then which thing need to study - like authentication authorization - tell me all kind of section which one need to follow and study thanks for your reply - brother -

towhid started a new conversation Want To Create User Table But I Don't Understand What Can I Do Create Customize User Table Or Use Laravel Built In Auth

if i want to create user table and use extra field then what the best for development part ? built in auth customize or create totally different table and create all kind of authentication ?

01 Jul
3 weeks ago

towhid left a reply on Why This Error Show In My Editor How To Solve This Error ?

<template>
  <div>
    <ul>
      <li v-for="ninja in ninjas" v-bind:key="ninja.id">{{ninja}}</li>
    </ul>
  </div>
</template>
``
<script>
export default {
  data() {
    return {
      ninjas: ["towhid", "tumpa", "tanvir", "rana", "rupam"]
    };
  }
};
</script>

i use this code - and error gone buy i have n value for id

towhid started a new conversation Why This Error Show In My Editor How To Solve This Error ?

<li v-for="ninja in ninjas">{{ninja}}</li>

The li element represents a list item. If its parent element is an ol, ul, or menu element, then the element is an item of the parent element's list, as defined for those elements. Otherwise, the list item has no defined list-related relationship to any other li element.

[vue/require-v-for-key] Elements in iteration expect to have 'v-bind:key' directives.eslint-plugin-vue

26 May
1 month ago

towhid left a reply on I Want To Email From My Gmail Account , My Email Work When I MAIL_DRIVER=log , But When I Try To Send Gmail Host Its Not Work

Its Simply solution

  1. enable the 2 step varification 2 . create apps password 16 charecter and use this .env mail password field
  2. restert the server

thank you

towhid started a new conversation I Want To Email From My Gmail Account , My Email Work When I MAIL_DRIVER=log , But When I Try To Send Gmail Host Its Not Work

//log code

[2019-05-26 19:12:35] local.DEBUG: Message-ID: <[email protected]>
Date: Sun, 26 May 2019 19:12:35 +0000
Subject: contact message Querry
From: Admin management application <[email protected]>
To: towhid <[email protected]>
MIME-Version: 1.0
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable

SEnd Email  

this is my env code

MAIL_DRIVER=smtp
MAIL_HOST=smtp.gmail.com
MAIL_PORT=587
[email protected]
MAIL_PASSWORD=*******
MAIL_ENCRYPTION=tls

its show this error

Failed to authenticate on SMTP server with username "[email protected]" using 3 possible authenticators. Authenticator LOGIN returned Expected response code 235 but got code "534", with message "534-5.7.9 Application-specific password required. Learn more at 534 5.7.9 https://support.google.com/mail/?p=InvalidSecondFactor j20sm2303155pfi.138 - gsmtp ". Authenticator PLAIN returned Expected response code 235 but got code "534", with message "534-5.7.9 Application-specific password required. Learn more at 534 5.7.9 https://support.google.com/mail/?p=InvalidSecondFactor j20sm2303155pfi.138 - gsmtp ". Authenticator XOAUTH2 returned Expected response code 250 but got code "535", with message "535-5.7.8 Username and Password not accepted. Learn more at 535 5.7.8 https://support.google.com/mail/?p=BadCredentials j20sm2303155pfi.138 - gsmtp 
25 May
1 month ago

towhid started a new conversation I Used Form Request For Custom Validation Rules And Message , Done With Save Method , But I Cannot Understand How To Done Update Method For This Form Request Validation File

this is my Route Code

Route::get('/create','[email protected]');
Route::post('/save','[email protected]');
Route::get('/index','[email protected]')->name('indexBox');
Route::get('/edit/{id}','[email protected]');
Route::patch('/update/{id}','[email protected]');

this is my project controller

<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;
Use App\Project;
use App\Http\Requests\ProjectCreate;
use Illuminate\Support\Facades\View;
class ProjectController extends Controller
{

    //create method
    public function create(Request $request)
    {
        return view('project.create');
    }

    //save method
    public function save(ProjectCreate $request)
    {
        $data = $request->validated();
        Project::create($data);
        return back()->with('successMessage','project created Successfully');
    }

    //index method
    public function index()
    {
        $projects = Project::all();
        if(View::exists('project.index')):
            return view('project.index',compact('projects'));
        endif;
    }

    //edit method

    public function edit($id){
        $project = Project::find($id);
        return view('project.edit')->with('project',$project);
    }

    public function update(ProjectCreate $project, $id ){
        $project->update($id->all);
        return redirect('/index')->with('successMessage','project created Successfully');
    }
}

##this is my form request validation code

<?php

namespace App\Http\Requests;

use Illuminate\Foundation\Http\FormRequest;
class ProjectCreate extends FormRequest
{
    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }


    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'title' => ['required','unique:projects'],
            'description' => ['required'],
        ];
    }

    public function messages()
    {
        return [
            'title.required' => 'A title is required mustbe ,please fill up the message',
            'description.required' => 'A description khub dorkar',
        ];
    }
}

##this is my action button

<td><a href="">View</a> | <a href="/edit/{{$project->id}}">Edit</a> | <a href="">Delete</a></td>

this is my edit blade code

<form action="/update/{{$project->id}}" method="post">
    @method('PATCH')
    @csrf
    <input type="text" name="title" placeholder="Title" class="@error('title') is-invalid @enderror" value="{{$project->title}}">
    <br><br>
    <textarea name="description" id="" cols="30" rows="3" placeholder="Description">{{$project->description}}</textarea>
    <br><br>
    <input type="submit" value="UPDATE"> 
</form>

i don't undersatnd how to make update method perfectly

thank you

24 May
1 month ago

towhid left a reply on Want To Redirect Others Route When Error Occur For Code Or Syntax Fault

@CRONIX - Thanks :) this is my Real answer which one i searching :) thanks a lot Brother :) you are really good .

23 May
2 months ago

towhid left a reply on Want To Redirect Others Route When Error Occur For Code Or Syntax Fault

@DEVFREY - yes but i want to redirect any others route link when 404 occurs

as a example some one try to brouse this link

www.towhid,com/blog but i have not blog route or page then time the site redirect others rout link like contact page or index page or thank you page

22 May
2 months ago

towhid left a reply on Want To Redirect Others Route When Error Occur For Code Or Syntax Fault

@devfrey yes its work i just create 500 and 404 blade file create in errors folder in views folder

but i want to know what tat mean ?

The HttpException instance raised by the abort function will be passed to the view as an $exception variable:

towhid left a reply on Want To Redirect Others Route When Error Occur For Code Or Syntax Fault

@DEVFREY - The HttpException instance raised by the abort function will be passed to the view as an $exception variable:

towhid left a reply on Want To Redirect Others Route When Error Occur For Code Or Syntax Fault

@DEVFREY - this is not helpfull clearly = what and how cal abort function

abort() ?

towhid left a reply on Want To Redirect Others Route When Error Occur For Code Or Syntax Fault

@SNAPEY - i just want to redirect others page like 404 or 500 page for error exception when application data not found or page not found or server not found -

towhid left a reply on Want To Redirect Others Route When Error Occur For Code Or Syntax Fault

@snapey please chek my post again i update my problem details

towhid left a reply on Want To Redirect Others Route When Error Occur

@SNAPEY - why mean ? for which thing ? i am confused about your reply :/

towhid left a reply on Want To Redirect Others Route When Error Occur

@DEVFREY - yes i made it manualy because of, if i ave any knid of code or syntax error then its redirect another route page --

towhid left a reply on Want To Redirect Others Route When Error Occur

@SNAPEY - :/ btw - do you get my problem or i'll try again make you understand ?

towhid started a new conversation Want To Move Where Error Occur

when i have error in code then show this type error

compact(): Undefined variable: projescts

but i want to move my custom error page like

500.blade.php

here are all kind of information show which i want to right there

21 May
2 months ago

towhid left a reply on Want To Disable This Method In Form Request Validation File

@SERGIU17 - # or CTRL + Click on va lidate(), you need to pass an argument to it

how to do that ?i don't understand ...

towhid left a reply on Want To Disable This Method In Form Request Validation File

@CRONIX - you are r8

$data = $request->validate(); to $data = $request->validated();

this was my problem ---

towhid left a reply on Want To Disable This Method In Form Request Validation File

@SERGIU17 - if i delete this line how to pass my data for database save

towhid left a reply on Want To Disable This Method In Form Request Validation File

@CRONIX - its change already - but mazor problem is others

Too few arguments to function App\Http\Requests\ProjectCreate::Illuminate\Foundation\Providers\{closure}(), 0 passed and exactly 1 expected

towhid left a reply on Want To Disable This Method In Form Request Validation File

@SERGIU17 - ``` public function save(ProjectCreate $request) { // $data = $this->validateProjectData($request); $data = $request->validate(); Project::create($data); return back(); }

towhid started a new conversation Want To Disable This Method In Form Request Validation File

this is my form request validation after add this validation rules and message and authorize i face one error how to solve

//this is my form request validation  code

<?php

namespace App\Http\Requests;

use Illuminate\Foundation\Http\FormRequest;

class ProjectCreate extends FormRequest
{
    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'title' => ['required','unique:projects'],
            'description' => ['required'],
        ];
    }

    public function messages()
    {
        return [
            'title.required' => 'A title is required mustbe ,please fill up the message',
            'title.required' => 'A description khub dorkar',
        ];
    }
}

show this error

Symfony \ Component \ Debug \ Exception \ FatalThrowableError (E_RECOVERABLE_ERROR)
Too few arguments to function App\Http\Requests\ProjectCreate::Illuminate\Foundation\Providers\{closure}(), 0 passed and exactly 1 expected

16 May
2 months ago

towhid started a new conversation With Out Declaration In Authservice Provider Is It Work Policy Authorization ?

'App\Project'=>'App\Policies\ProjectPolicy',

is it work if any function call or metthod call ?

in projectpolicy file

   public function view(User $user, Project $project)
    {
        return  $project->user_id == $user->id;
    }

in projectController file

 public function view(Project $project)
    {

        $this->authorize('view', $project);
        return view('project.view')->withProject($project);
    }

30 Apr
2 months ago

towhid left a reply on Where The Default Auth Route List Called In Laravel 5.8 [ File Name]

@SERGIU17 - thank you

\vendor\laravel\framework\src\Illuminate\Routing\Router.php

this is update - path

towhid started a new conversation Where The Default Auth Route List Called

where can i find this route laravel 5.8

`` $this->get('login', 'Auth\[email protected]')->name('login'); $this->post('login', 'Auth\[email protected]'); $this->post('logout', 'Auth\[email protected]')->name('logout');

// Registration Routes... $this->get('register', 'Auth\[email protected]')->name('register'); $this->post('register', 'Auth\[email protected]');

// Password Reset Routes... $this->get('password/reset', 'Auth\[email protected]'); $this->post('password/email', 'Auth\[email protected]'); $this->get('password/reset/{token}', 'Auth\[email protected]'); $this->post('password/reset', 'Auth\[email protected]');

27 Apr
2 months ago

towhid left a reply on I Want To Create Two Types User Panel For Two Types User.

@PHPHUPPTECHNOLOGIES - use this existing user's migrations table

$table->string('level',255)->nullable();

then migrate and use make:auth command, then create middle ware use this code

public function handle($request, Closure $next, $level1, $level2 = null, $level3 = null)
    {
        if (Auth::user() &&  Auth::user()->level == $level1) {
            return $next($request);
        } elseif(Auth::user() && $level2 != null && Auth::user()->level == $level2) {
            return $next($request);
        } elseif(Auth::user() && $level3 != null && Auth::user()->level == $level3) {
            return $next($request);
        } else {
            return response()->view('accessDenied.404');
        }
    }

and use this code fro route

Route::group(['middleware' => ['CheckLevel:level1']], function() {
    /****Level1 Route****/
    Route::get('level1','[email protected]');        
});
Route::group(['middleware' => ['CheckLevel:level2']], function() {
    /****Level2 Route****/
    Route::get('level2','[email protected]');        
});
Route::group(['middleware' => ['CheckLevel:level1,level2']], function() {
    /****Level1and level2 mix Route****/
    Route::get('level1/level2','[email protected]');     
});

out put is default nothing change after add al of your instruction i think this is not accurate way because of you didnot share proper step , if you don't mind please write proper way till login panel and admin panel show

towhid left a reply on I Want To Create Two Types User Panel For Two Types User.

@JLRDW - sorry if i mistakenly not make you understand , but as my need i check in google there are many type of solution like - auth.php file changes or add some driver i also try but not exactly what i was want .

authorization and authentication is my week point in laravel that's why you suggest me two chapter if i want know out of box --- r8 ? but i cannot understand and not even clear from documentation i want practically code support - that's why i am still searching - the answer .

towhid left a reply on I Want To Create Two Types User Panel For Two Types User.

@PHPHUPPTECHNOLOGIES - i will update about your instruction soon - thank you

towhid left a reply on I Want To Create Two Types User Panel For Two Types User.

@JLRDW - i think i cannot make you understand :/

for this thing i want learn many ways in laracasts -

if i have -- two or three or multi types user access then they have difference data field for difference user type , so how to access check or login panel , i want to use one login panel is this possible ? or need multi login panel ? for multi user type ? i just want t clear ... thank you

towhid left a reply on I Want To Create Two Types User Panel For Two Types User.

@JLRDW - suggest me any practical code or video - i don't underrated what i will do for this type of action .thank you

towhid left a reply on I Want To Create Two Types User Panel For Two Types User.

@cronix please suggest any references code or video i cannot understand properly https://laravel.com/docs/5.8/authorization this page . thanks

26 Apr
2 months ago

towhid left a reply on I Want To Create Two Types User Panel For Two Types User.

@PATROSMANIA - i don't want to use any kind of third party package , i just want to create customize All of things

towhid started a new conversation I Want To Create Two Types User Panel For Two Types User.

i want to create two types login user, one is admin and others is customer , what i will do for this scenario .

am i use laravel buitin auth ? or make manualy auth ?

please suggest me - for customize data type table -

25 Mar
3 months ago

towhid left a reply on Foreach In Blade Directive ?

what the problem what the error show and what happened if you submit this for each ?

towhid left a reply on How To Check User_id Exist And Email Not Empty At The Same Time In Laravel?

if (SchoolDetails::where('user_id',Auth::User()->id)) {
return view('frontend.schools');
 }else{
return redirect('/account')->with('error', 'Kindly update your school details first !');
18 Mar
4 months ago

towhid left a reply on How To Use Vue Js In Laravel Please Guide Me Or Share With Me Some References

@TYKUS - yes i do .. as like Kel_ an ia m going to him best answer for his support ..

towhid left a reply on How To Use Vue Js In Laravel Please Guide Me Or Share With Me Some References

@KEL_ - are you boring about my question ? - then think in same class there are difference type of student , some student very intelligent , and some students are very week .

then how to treat a teacher with them ?

i am not sure ? what the accurate question you want from me , last time i said - how to start vue js in laravel project .

but i got my answer - from you and many person - thanks for your reply

towhid left a reply on How To Use Vue Js In Laravel Please Guide Me Or Share With Me Some References

@TYKUS - this is my specific - question

i know laravel , i just want to start vue js use my laravel project - i hope this is some instruction make e clear thank you