Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

syntax error, unexpected '::' (T_PAAMAYIM_NEKUDOTAYIM) #94

Closed
khaninejad opened this issue Oct 8, 2016 · 4 comments
Closed

syntax error, unexpected '::' (T_PAAMAYIM_NEKUDOTAYIM) #94

khaninejad opened this issue Oct 8, 2016 · 4 comments

Comments

@khaninejad
Copy link

Symfony\Component\Debug\Exception\FatalErrorException · vendor/laravel/scout/src/Console/FlushCommand.php:32

syntax error, unexpected '::' (T_PAAMAYIM_NEKUDOTAYIM)
Stage

local
Severity

error
Stacktrace summary

vendor/laravel/scout/src/Console/FlushCommand.php:32 · [main]

@brad82
Copy link

brad82 commented Oct 10, 2016

I also experience this error after updating when trying to perform any console commands, v1.1.6

@anteriovieira
Copy link
Contributor

The solution to this issue has already been resolved #93

We are waiting @taylorotwell launch the new version with this fix.

@anteriovieira
Copy link
Contributor

Fix version v1.1.7

@themsaid themsaid closed this as completed Oct 2, 2017
@madfortech
Copy link

I'start learning laravel
Welcome.blade.php -------------code
`@extends('layout.main')
@section('content')

Himanshu Nishad

@if(session('successMsg'))
{{session('successMsg')}}

@endif

@foreach($students as $students 'students')
@endforeach
# first Name last name email phone
{{$student->id}} {{$student->firstname}} {{$student->lastname}} @{{$student->Email}} {{$student->phone}} Edit || Delete

@endsection

<?php --------------- StudentController.php

namespace App\Http\Controllers;

use Illuminate\Http\Request;
use App\Models\Student;

class StudentController extends Controller
{
public function index(){
$students = Student::all();
return View('welcome',compact('students'));
}

public function create(){
    return View('create');
}

public function store(Request $request){

    // $this->validate($request,[
    //     'firstName' => 'required|min:4|max:20',
    //     'lastName' => 'required|min:4|max:20',
    //     'Email' => 'required|min:4|max:20',
    //     'phone' => 'required|min:4|max:20'
    // ]);
     
    $student = new Student;

    $student -> firstName = $request->firstName;
    $student -> lastName = $request->lastName;
    $student -> Email = $request->Email;
    $student -> phone = $request->phone;
    $student->save();
    return redirect(route('home'))->with('successMsg','Student Successfully Added');
}

}
`
syntax error, unexpected ''students'' (T_CONSTANT_ENCAPSED_STRING), expecting :: (T_PAAMAYIM_NEKUDOTAYIM) (View: C:\xampp7.4.10\htdocs\blog\resources\views\welcome.blade.php)
any one help me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants