Ramazan

Ramazan

Member Since 1 Year Ago

Experience Points 1,540
Experience Level 1

3,460 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 0
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.

17 Oct
9 months ago

Ramazan left a reply on Call To Undefined Method

clicking link in the email the error is `Object not found! The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.

If you think this is a server error, please contact the webmaster.`

16 Oct
9 months ago

Ramazan left a reply on Call To Undefined Method

still it does not work the link is http://localhost/password/reset where i am testing my site

Ramazan left a reply on Call To Undefined Method

answer plz

Ramazan left a reply on Call To Undefined Method

i have used notification and the link is

      public function toMail($notifiable)
  {
    $notifiable->email = $this->email;
    $url = url('password/reset/{token}'.$this->token);
    return (new MailMessage)
                ->line('you receiving this email because we received a password reset from 
      your account.')
                ->action('Reset Password', $url)
                ->line('Thank you for using our application!');
     }

i haven't used the mail so this is the only link which used by mailtrap is't it? the mailtrap link is

 http://localhost/password/reset/the token 
14 Oct
9 months ago

Ramazan left a reply on Call To Undefined Method

this is my APP_URL

APP_URL=http://localhost

Ramazan left a reply on Call To Undefined Method

this is my notification

     public function toMail($notifiable)
    {
    $notifiable->email = $this->email;
    $url = url('password/reset/{token}'.$this->token);
    return (new MailMessage)
                ->line('you receiving this email because we received a password reset from 
    your account.')
                ->action('Reset Password', $url)
                ->line('Thank you for using our application!');
     }

Ramazan left a reply on Call To Undefined Method

I have fixed that by using facade but when i want to go to resetpassword route from mailtrap i got this error

   Object not found!
   The requested URL was not found on this server. If you entered the URL manually 
   please check your spelling and try again.

   If you think this is a server error, please contact the webmaster.

Ramazan left a reply on Call To Undefined Method

this is my model

namespace App;

use Illuminate\Notifications\Notifiable; use App\Notifications\ResetPasswordNotification; //Class which implements Illuminate\Contracts\Auth\Authenticatable use Illuminate\Foundation\Auth\User as Authenticatable; use Illuminate\Support\Facades\Event;

class User extends Authenticatable
{
    use Notifiable;

       public function sendPasswordResetNotification($token)
    {
        $this->notify(new ResetPasswordNotification($token));
     }
 }

Ramazan started a new conversation Call To Undefined Method

hello guys i got this error when i have tired to send password reset link

   BadMethodCallException
   Call to undefined method Illuminate\Database\Query\Builder::notify()
10 Oct
9 months ago

Ramazan left a reply on I Got This Error While Sending Mail

this the code line 34 public function mail(User $user) { Mail::to(Auth::user())->send(new UserMail($user));

          return view('/users.home');
     }

Ramazan started a new conversation I Got This Error While Sending Mail

Type error: Argument 1 passed to App\Mail\UserMail::__construct() must be an instance of 
App\User, none given, called in 
C:\xampp\htdocs\socialUni\app\Http\Controllers\HomeController.php on line 34
02 Oct
9 months ago

Ramazan left a reply on Form Submition To The Wrong Route

the answer is public function login(loginRequest $request ) { if ( Auth()->attempt(['email' => $request->Username, 'password' => $request- >Password], $request->remember) ) { return redirect('dashboard') } return redirect($this->redirect);

Ramazan left a reply on Form Submition To The Wrong Route

okay thanks but what about my question its really hard to answer

Ramazan left a reply on Form Submition To The Wrong Route

still does not work

Ramazan left a reply on Form Submition To The Wrong Route

not i have not use Auth::route();

 Route::get('/',function(){return view('users.home');});
 Route::get('register', '[email protected]')- 
 >name('showRegister');
Route::post('register', '[email protected]')->name('Register');
Route::get('login', '[email protected]')->name('showLogin');
Route::post('login', '[email protected]')->name('login');
Route::get('/dashboard', function(){return view('users.dashboard');});
Route::post('logout', '[email protected]')->name('Logout');

Ramazan left a reply on Form Submition To The Wrong Route

i have validated my request

   namespace App\Http\Requests;

use Illuminate\Foundation\Http\FormRequest;

class loginRequest 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 [
          //
          'Username' => 'email|required',
          'Password' => 'min:6|required',
      ];
  }

}

Ramazan left a reply on Form Submition To The Wrong Route

anyone help me plz

Ramazan left a reply on Form Submition To The Wrong Route

and this is my controller

    class LoginController extends Controller
{

    protected $redirect = '/login';
    //Shows user login form
    public function showLoginForm()
    {
    return view('users.sign_in');
    }
    public function login(loginRequest $request )
    {
        if ( Auth()->attempt(['email' => $request->Username, 'password' => $request- 
   >Password], $request->remember) ) {
        return redirect()->intended( url('dashboard') );
    }
    return redirect($this->redirect);
   }




public function logout(Request $request)
{
    Auth::guard()->logout();
    $request->session()->flush();
    return redirect()->guest(route('showLogin'));
}

Ramazan left a reply on Form Submition To The Wrong Route

  <div class="login-form">
                <h2>LOGIN</h2>
                <form method="POST" action="{{route('login')}}">
                    {!!csrf_field()!!}

                    <input id="nametxt" class="input-class {{ $errors->has('Username') ? ' has- 
   error' : '' }}" type="text" placeholder="Username" name="Username" required="" 
  value="{{old('Username')}}">
                    @if ($errors->has('Username'))
                        <span class="help-block">
                            <strong>{{ $errors->first('Username') }}</strong>
                        </span>
                    @endif
                    <input id="emailtxt" class="input-class {{ $errors->has('Password') ? ' has- 
  error' : '' }}" type="password" placeholder="Password" name="Password" required="">
                    @if ($errors->has('Password'))
                        <span class="help-block">
                            <strong>{{ $errors->first('Password') }}</strong>
                        </span>
                    @endif
                    <button class="register input-class" type="submit">LOGIN</button>
                </form>
                <ul class="forgot">
                    <li><a href="#" class="txt-forgot">Forgot Password ?</a></li>
                    <li><a href="{{route('showRegister')}}" class="txt-forgot">Don’t have an 
   account?
                            <button class="btn btn-lg btn-primary txt-forgot" type="submit"> Sign 
  Up</button>
                        </a>
                    </li>
                </ul>
            </div>

Ramazan left a reply on Form Submition To The Wrong Route

nope i haven't used any middleware

01 Oct
9 months ago

Ramazan left a reply on Form Submition To The Wrong Route

this is my route // Route::get('/',function(){return view('users.home');}); Route::get('register', '[email protected]')->name('showRegister'); Route::post('register', '[email protected]')->name('Register'); Route::get('login', '[email protected]')->name('showLogin'); Route::post('login', '[email protected]')->name('login');

Ramazan started a new conversation Form Submition To The Wrong Route

when i try to submit the login form it goes to the wrong route to the logout route with MethodNotAllowedHttpException error with no message

25 Sep
9 months ago

Ramazan started a new conversation Sending Email Via Mailtrap Not Working And Not Error

i tried to send email to mailtrap i have used the laravel5.4 markdown but in mailtrap server is no incoming email

16 Sep
10 months ago

Ramazan left a reply on Login Redirect Me Back To The Same Page

and what is the logic plz i should write that where

Ramazan left a reply on Login Redirect Me Back To The Same Page

is their any one to help me ??

Ramazan started a new conversation Login Redirect Me Back To The Same Page

use Auth; class LoginController extends Controller {

//Where to redirect seller after login.
protected $redirectPath = '/dashboard';

use AuthenticatesUsers;
//Custom guard for user
protected function guard()
{
    return Auth::guard('Register_guard');

}

//Load the login user
public function showLogin()
{
    return view('users.home');
}
06 Sep
10 months ago

Ramazan left a reply on Class 'socailuni\Http\Controllers\Controller' Not Found

my controller is App\Attp\contollers\Auth the loginController

Ramazan left a reply on Class 'socailuni\Http\Controllers\Controller' Not Found

still not work i get this error again

Class 'App\Http\Controllers\Controller' not found

Ramazan left a reply on Class 'socailuni\Http\Controllers\Controller' Not Found

only my auth controllers does't work

Ramazan left a reply on Class 'socailuni\Http\Controllers\Controller' Not Found

yes i tried composer dump-autoload and also i have the app/Http/controllers

Ramazan left a reply on Class 'socailuni\Http\Controllers\Controller' Not Found

is their any one to answer me plz

Ramazan started a new conversation Class 'socailuni\Http\Controllers\Controller' Not Found

i have used the laravel auth and i get this error that Class 'socailuni\Http\Controllers\Controller' not found i have tried to solve that by php artisan app:name commend but still does not work

05 Sep
10 months ago

Ramazan left a reply on Argument 1 Passed To Illuminate\Auth\SessionGuard::login() Must Be An Instance Of

this is my contorller

public function store(Request $request){ //create and save the user $login = Login::create($request->all()); // login them in auth()->login($login); // redirect to the home return redirect()->home(); }

Ramazan started a new conversation Argument 1 Passed To Illuminate\Auth\SessionGuard::login() Must Be An Instance Of

when i want to submit my login form I saw this error

Type error: Argument 1 passed to Illuminate\Auth\SessionGuard::login() must be an instance of Illuminate\Contracts\Auth\Authenticatable, instance of App\Login given, called in C:\xampp\htdocs\socialUni\vendor\laravel\framework\src\Illuminate\Auth\AuthManager.php on line 292

04 Sep
10 months ago

Ramazan left a reply on How To Add External Css File Into Laravel-mix S

my file extension is css i should change that to sass can you show me and example please

Ramazan left a reply on How To Add External Css File Into Laravel-mix S

my custom css file is in public/css how to add that in webpack.mix.js may I change the css directory into resource file or no

Ramazan started a new conversation How To Add External Css File Into Laravel-mix S

i wan change my custom style into sass by laravel-mix how to add my file into webpack.mix.js

02 Sep
10 months ago

Ramazan left a reply on SweetAlert Implement In Laravel

hello how to use sweetalert in laravel

Ramazan started a new conversation SweetAlert Implement In Laravel

hello how to use sweet alert i laravel and how to link that locally

29 Aug
10 months ago

Ramazan left a reply on Link The Bootstrap

okay public folder please write an example of the link

Ramazan left a reply on Link The Bootstrap

i tried the assets white Url whitout url and it does not work

Ramazan started a new conversation Link The Bootstrap

how to link the bootstrap to laravel i have put the laravel file in public folder and i have used the link

and

09 May
1 year ago

Ramazan left a reply on Can't Add Or Update The Child Row

hey guy please help i cant find any thing after four hour googling

Ramazan left a reply on Can't Add Or Update The Child Row

the model class Note extends Model { protected $fillable =['body']; public function card(){ return $this->belongsTo(Card::class); } public function user(){ return $this->belongsTo(User::class); } public function tags(){ return $this->belongsToMany(Tag::class)->withTimestamps(); }

the tag model class Tag extends Model { public function notes() { return $this->belongsToMany(Note::class); } }

the card modek

class Card extends Model { public function notes(){ return $this ->hasMany(Note::class); }

}

Ramazan left a reply on Can't Add Or Update The Child Row

class NotesController extends Controller { public function store(Request $request , Card $card){

    flash_data('your note has been created','success');
    //short form validation
    $this->validate($request,[
        'body'=>'required|min:10'
    ]);
    /*dd($request->input('tags'));*/
    $note = new Note($request->all());
    $note->user_id = 1;
    $card->notes()->save($note);
    //give th tags id from database  and pass that on the show view by select form its done by attach method

    $note->tags()->attach($request->input('tags'));

    return back()

Ramazan left a reply on Can't Add Or Update The Child Row

this is the note table public function up() { Schema::create('notes', function (Blueprint $table) { $table->increments('id'); $table->integer('user_id')->unsigned()->index(); $table->integer('card_id')->unsigned()->index(); $table->text('body'); $table->timestamps(); }); }

Ramazan left a reply on Can't Add Or Update The Child Row

this is the tags and note tags tabel public function up() { Schema::create('tags', function (Blueprint $table) { $table->increments('id'); $table->string('name'); $table->timestamps(); }); Schema::create('note_tag', function (Blueprint $table) { $table->integer('note_id')->unsigned()->index(); $table->foreign('note_id')->references('id')->on('tags')->onDelete('Cascade')->onUpdate('Cascade'); $table->integer('tag_id')->unsigned()->index(); $table->foreign('tag_id')->references('id')->on('notes')->onDelete('Cascade')->onUpdate('Cascade');

        $table->timestamps();
    });

}