enexspecial

Experience

1,720

0 Best Reply Awards

  • Member Since 9 Months Ago
  • 1 Lesson Completed
  • 0 Favorites

22nd March, 2018

enexspecial left a reply on How Can I Solve This Issue App\Http\Controller\API/welcomeController Does Not Exist • 2 months ago

@tykus : Please tell me how can i create a web application that consume rest api. Please tell me do i use both web route and api route together or i should just use the api route alone

enexspecial left a reply on How Can I Solve This Issue App\Http\Controller\API/welcomeController Does Not Exist • 2 months ago

here is my route Route::get('/','API/[email protected]' );

enexspecial left a reply on How Can I Solve This Issue App\Http\Controller\API/welcomeController Does Not Exist • 2 months ago

This is the controller

namespace App\Http\Controllers\API;

use Illuminate\Http\Request; use App\Http\Controllers\Controller;

class welcomeController extends Controller { public function index(){ return view('welcome'); } }

enexspecial started a new conversation How Can I Solve This Issue App\Http\Controller\API/welcomeController Does Not Exist • 2 months ago

I created a sub folder to store my API controller, then name made a controller welcomeController.php

16th February, 2018

enexspecial left a reply on Can Laravel Site Be Scanned By Hackers • 4 months ago

@Tarasovych: Can i have a way to contact you please may be through facebook so that i interact with you to know more about laravel security. Please

enexspecial started a new conversation Can Laravel Site Be Scanned By Hackers • 4 months ago

Please i want to know how laravel web application can be scanned by hackers and how to hide laravel application from hackers

Thank you

30th January, 2018

enexspecial started a new conversation How Can I Solve The A HTMLTableElement Has To Be Sent To AutoTableHtmlToJson Using JsPDF • 4 months ago

Please am getting this error when using jsPDF A HTMLTableElement has to be sent to autoTableHtmlToJson (index):915 Uncaught TypeError: Cannot read property 'columns' of null

What does it mean ?

18th January, 2018

enexspecial left a reply on How Can I Protect My Laravel Application • 5 months ago

@jcmargentina Thank you i will check them

17th January, 2018

enexspecial left a reply on How Can I Protect My Laravel Application • 5 months ago

Okay thank you

enexspecial left a reply on How Can I Protect My Laravel Application • 5 months ago

Attack from hackers

enexspecial left a reply on How Can I Protect My Laravel Application • 5 months ago

Okay please how do you prevent an attack with Laravel

16th January, 2018

enexspecial started a new conversation How Can I Protect My Laravel Application • 5 months ago

Please what is the best method for protecting my laravel application when it goes live ? Do i need to install security dependencies and if there is any which is currently the best option?

15th January, 2018

enexspecial left a reply on Please I Want To Use Laramix For My Project And I Am Having This Issues With My GIT BASH • 5 months ago

Thanks i have corrected the error in my package.json

enexspecial left a reply on Please I Want To Use Laramix For My Project And I Am Having This Issues With My GIT BASH • 5 months ago

Here is another error i got when i ran npm ls gulp-util

Error:

C:\xampp\htdocs\craftyhands `-- (empty)

npm ERR! error in C:\xampp\htdocs\craftyhands: Failed to parse json npm ERR! Unexpected token } in JSON at position 1105 while parsing near '...js": "^1.12.9", npm ERR! } npm ERR! } npm ERR! '

enexspecial left a reply on Please I Want To Use Laramix For My Project And I Am Having This Issues With My GIT BASH • 5 months ago

Yes i did check the link but could not reallly make any meaning of it. Please tell me how will i move the deprecated file

14th January, 2018

enexspecial started a new conversation Please I Want To Use Laramix For My Project And I Am Having This Issues With My GIT BASH • 5 months ago

I did a npm install only to get this error from my git bash

npm WARN deprecated [email protected]: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5 npm WARN tar zlib error: unexpected end of file npm WARN tar zlib error: unexpected end of file npm ERR! cb() never called!

npm ERR! This is an error with npm itself. Please report this error at: npm ERR! https://github.com/npm/npm/issues

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\kings\AppData\Roaming\npm-cache_logs\2018-01-14T20_36_31_841Z-debug.log

please any ideas because i want to use bootstrap 4 on this project of mine

28th November, 2017

enexspecial left a reply on How Can I Correct This Error In JavaScript[ CountUp Error: StartVal Or EndVal Is Not A Number] • 6 months ago

The code CountUp() has being inputted but still having the error and yes the numbered required startVal and endVal are numbers

enexspecial started a new conversation How Can I Make This Jquery Datatable Collection To Go Away When I Click The Dom • 6 months ago

how do i make this datatable collection button hide when i click the dom? var table = $( "#table1" ).DataTable( { destroy: true, processing: false, deferRender: true, responsive: true, serverSide: true, columnDefs: [ { 'bSortable': false, 'aTargets': [ 0 ] } ], sort: true, searching: true, //select: "multi", lengthMenu: [ 10, 20, 50, 100 ], //dom: 'Bfrtip', buttons: [ { text: "Create Campaign", action: function ( e, dt, node, config ) { window.location.href = ''; } }, { extend: 'collection', text: 'Export', autoClose:true, buttons: [ 'copy', 'excel', 'csv', 'pdf', 'print' ]

        }, 'selectAll', 'selectNone' ],
        

enexspecial started a new conversation How Can I Correct This Error In JavaScript[ CountUp Error: StartVal Or EndVal Is Not A Number] • 6 months ago

how can i solve this error [ countUp error: startVal or endVal is not a number]

function counter() { $( '[data-toggle="counter"]' ).each( function ( i, e ) { var _el = $( this ); var prefix = ''; var suffix = ''; var start = 0; var end = 0; var decimals = 0; var duration = 2.5;

            if ( _el.data( 'prefix' ) ) {
                prefix = _el.data( 'prefix' );
            }

            if ( _el.data( 'suffix' ) ) {
                suffix = _el.data( 'suffix' );
            }

            if ( _el.data( 'start' ) ) {
                start = _el.data( 'start' );
            }

            if ( _el.data( 'end' ) ) {
                end = _el.data( 'end' );
            }

            if ( _el.data( 'decimals' ) ) {
                decimals = _el.data( 'decimals' );
            }

            if ( _el.data( 'duration' ) ) {
                duration = _el.data( 'duration' );
            }

            var count = new CountUp( _el.get( 0 ), start, end, decimals, duration, {
                suffix: suffix,
                prefix: prefix,
            } );

            count.start();
        } );
    }

16th November, 2017

enexspecial left a reply on Please I Am Getting This Error [BadMethodCallException] • 7 months ago

message: "Call to undefined method App\User::profiles()", exception: "BadMethodCallException"

The same error

enexspecial left a reply on Please I Am Getting This Error [BadMethodCallException] • 7 months ago

Yes i Have changed it to

orWhereHas('profiles', function($asking) i still the same error. Please How do i solve the problem?

enexspecial started a new conversation Please I Am Getting This Error [BadMethodCallException] • 7 months ago

Please I am trying to create a search using jquery autocomplete ui and i am getting this error message : message: "Call to undefined method App\User::App\profiles()", exception: "BadMethodCallException" Here is my controller

public function SearchFriends(Request $request) { $term = $request->term; $searching = User::where('email', 'LIKE', '%'. $term . '%') ->orWhere('location', 'LIKE', '%'.$term.'%') ->orWhere('name', 'LIKE', '%'.$term.'%') ->orWhereHas('App\profiles', function($asking) use ($term){ $asking->where('community', 'LIKE', '%'.$term.'%') ->orWhere('ethnicity', 'LIKE', '%'.$term.'%') ->orWhere('state', 'LIKE', '%'.$term.'%'); })->orderBy('id')->paginate(20); $data = []; foreach($searching as $key => $value){ $data[] = [ 'id' => $value->id, 'email' => $value->email, 'location' => $value->location, 'name' => $value->name, 'community' => $value->community, 'ethnicity' => $value->ethnicity, ]; } return response()->Json($data); }

Here is my Jquery code:

$(document).ready(function(){ $('input[name="keywords"]').autocomplete({ source : "{!!url('/keysearch')!!}", autoFocus : true, minLength : 1, select:function(key, value){ console.log(value); } }); });

Here is my model for Profiles: namespace App;

use Illuminate\Database\Eloquent\Model; use App\User;

class profiles extends Model { protected $fillable = [ 'user_id', 'address', 'ethnicity', 'state', 'community', 'age' ]; public function user() { return $this->belongsTo(User::class); } }

Here is my model for user:

public function Profiles() { return $this->hasOne(profiles::class); }

Please help is need on how to solve it: Thank you

14th November, 2017

enexspecial started a new conversation Please I Want Help On How To Solve This Issue • 7 months ago

I trying to create a system where a user can click on an image then a modal open and user can view the picture and also read the comment of other users; Now i have this routes:

Route::get('/upload','[email protected]')->name('upload');==> This render the page

Route::post('/picture', '[email protected]'); ==> This is button that upload the picture file to serve and it is a bootstrap modal.

Route::get('upload/show/{id}', '[email protected]');==> This is modal that display the image file and the comment edit and delete

The error here is this (Undefined variable: albums)

Here is the controller:

public function index() { $photos = DB::table('upload_galleries')->get();

  return view('community.gallery', compact('photos'));
}

public function showUpload($id) {

  $albums = DB::table('upload_galleries')->where('id', $id)->first();

  return view('community.gallery.upload', compact('albums'));
}

Here is my view:

Gallery Picture ×

Picture Upload

{{Form::open(['file'=>true,'url'=>'/picture', 'method'=>'post', 'enctype'=>'multipart/form-data'])}} {{csrf_field()}} {{Form::label('details','Details')}} {{Form::textarea('details','',['class'=>'form-control input-sm', 'rows'=>'2'])}} {{Form::label('upload','Upload Picture')}} {{Form::file('picture',['class'=>'form-control input-sm', 'rows'=>'3'])}} Upload
                    {{Form::close()}}
                  </div>
                  <div class="modal-footer">
                        <button type="button" class="btn btn-default btn-sm" data-dismiss="modal">Close</button>
                  </div>
                </div>
              </div>
            </div>
      

@foreach($photos as $photo) @endforeach ×

{{strtoupper(Auth::user()->slug)}} Picture

@foreach($albums as $album) {{$album->details}} {{Form::open()}} {{Form::textarea('comment','',['class'=>'form-control input-sm', 'rows'=>2])}} &nbsp| &nbsp| {{Form::close()}} @endforeach

                    </div>
                  </div>
                </div>
              </div>
            </div>
      </div>
    </div>
  </div>

</div>

enexspecial left a reply on How Can I Solve This 404 Not Found Error Even When Route Exist • 7 months ago

Please i Need Help !!!!!!!!!!!!!!!!!!!!!!!!!

13th November, 2017

enexspecial left a reply on How Can I Solve This 404 Not Found Error Even When Route Exist • 7 months ago

@Snapey : I have manually entered the lat and long value into the database i want to retrieve the data from the database. Please what is the best way to go about it

@rumm.an : I have tried it and i am getting 500 internal server error and also i tried using api route and i am getting 401 (Unauthorized)

enexspecial left a reply on How Can I Solve This 404 Not Found Error Even When Route Exist • 7 months ago

Yes i have my debugger turned on here is the error

http://127.0.0.1:8000/%7B%7Broute('mappy')%7D%7D 404 (Not Found)

and i have done the php artisan route:list

Here is the result;

POST | mappy | location | App\Http\Cont rollers\[email protected] | web,auth

enexspecial left a reply on How Can I Solve This 404 Not Found Error Even When Route Exist • 7 months ago

I did do the php artisan route:list and the route exist.

enexspecial left a reply on How Can I Solve This 404 Not Found Error Even When Route Exist • 7 months ago

I have changed it to Route::any('/mappy','[email protected]')->name('location'); i still have the error

enexspecial left a reply on How Can I Solve This 404 Not Found Error Even When Route Exist • 7 months ago

Okay Here is my route: Route::post('/mappy','[email protected]')->name('location');

Here is my controller: public function postLocation(Request $request) { $lat = $request->lat; $long = $request->lng;

    $map = Mappy::whereBetween('lat', [$lat-0.1,$lat+0.1])->whereBetween('long', [$long-0.1,$long+0.1])->get();

    return $map;
}

Here is my Js file: function searchInformation(lat,long) { $.post("{{URL::to('mappy')}}", {lat:lat, long:long}, function(match){ console.log(match); }); }

12th November, 2017

enexspecial started a new conversation How Can I Solve This 404 Not Found Error Even When Route Exist • 7 months ago

I have being trying to solve this issue about this 404 not found error i created a route and it keep giving me this error

8th November, 2017

enexspecial left a reply on Please I Need Help To Solving This Error Code 404 Not Found • 7 months ago

Okay i have remove the get() but i still have the same error; please what could i have being doing wrong

enexspecial started a new conversation Please I Need Help To Solving This Error Code 404 Not Found • 7 months ago

I am trying to create a search within two database table and am using jquery autocomplete, after writing the code i got this error 404 not found. Please i need help solving the issue. Here is my Jquery: $(document).ready(function(){ $('input[name="keywords"]').autocomplete({ source : "{{URL::to('/findsFriends')}}", autoFocus : true, select : function(key value){ console.log(value); } }); });

Here is my controller: public function postSearchRequest(Request $request) { $search = $request->term; $keyword = User::where('email', 'LIKE', '%'. $search . '%')

                    ->orWhere('location', 'LIKE', '%'.$search.'%')

                    ->orWhere('fullname', 'LIKE', '%'.$search.'%')

                    ->orWhereHas('profiles', function($asking) use ($search){

                      $asking->where('community', 'LIKE', '%'.$search.'%')

                              ->orWhere('ethnicity', 'LIKE', '%'.$search.'%')

                              ->orWhere('state', 'LIKE', '%'.$search.'%');

                    })->orderBy('id')->paginate(20)->get();
      $data = [];

      foreach($keyword as $key => $value){

          $data[] = [ 'id'        => $value->id,

                         'email'     => $value->email,

                      'location'  => $value->location,

                      'fullname'  => $value->fullname,

                      'community' => $value->community,

                      'ethnicity' => $value->ethnicity,
                    ];
      }
      return response()->Json($data);
}

7th November, 2017

enexspecial started a new conversation Please How Can I Solve This Error 404 Not Found • 7 months ago

I am trying to create a search engine that will search my database for users, i have written my code and am trying console.log my code and am getting this error 404 not found. Here is Jquery Code; $(document).ready(function(){ $('input[name="keywords"]').autocomplete({ source : "{{URL::to('/findFriends')}}", autoFocus : true, select:function(key, value){ console.log(value); }

});

}); Here is my controller code: public function postSearchRequest(Request $request) { $search = $request->term; $keyword = User::where('email', 'LIKE', '%'. $search . '%') ->orWhere('location', 'LIKE', '%'.$search.'%') ->orWhere('fullname', 'LIKE', '%'.$search.'%') ->orWhereHas('profiles', function($asking) use ($search){ $asking->where('community', 'LIKE', '%'.$search.'%') ->orWhere('ethnicity', 'LIKE', '%'.$search.'%') ->orWhere('state', 'LIKE', '%'.$search.'%'); })->orderBy('id')->paginate(20)->get(); $data = []; foreach($keyword as $key => $value){ $data[] = [ 'id' => $value->id, 'email' => $value->email, 'location' => $value->location, 'fullname' => $value->fullname, 'community' => $value->community, 'ethnicity' => $value->ethnicity, ]; } return response()->Json($data); }

enexspecial started a new conversation How Can I Solve This Autocomplete Error: 404 Error • 7 months ago

I am trying to create a search engine to search my database am i current encountering this error http://127.0.0.1:8000/%7B%7BURL::to('/findFriends')%7D%7D?term=h 404 (Not Found)

Here is my javascript; $(document).ready(function(){ $('input[name="keywords"]').autocomplete({ source: "{{URL::to('/findFriends')}}", //minLength:2, select:function(key, value){ console.log(value); } }); });

Here is my route: Route::get('/findFriends', '[email protected]');

Here is my controller public function postSearchRequest(Request $request) { $search = $request->term; $keyword = User::where('email', 'LIKE', '%'. $search . '%') ->orWhere('location', 'LIKE', '%'.$search.'%') ->orWhere('fullname', 'LIKE', '%'.$search.'%') ->orWhereHas('profiles', function($asking) use ($search){ $asking->where('community', 'LIKE', '%'.$search.'%') ->orWhere('ethnicity', 'LIKE', '%'.$search.'%') ->orWhere('state', 'LIKE', '%'.$search.'%'); })->orderBy('id')->paginate(20)->get(); $data = []; foreach($keyword as $key => $value){ $data[] = [ 'id' => $value->id, 'email' => $value->email, 'location' => $value->location, 'fullname' => $value->fullname, 'community' => $value->community, 'ethnicity' => $value->ethnicity, ]; } return response($data); }

6th November, 2017

enexspecial started a new conversation How Can Build A Chat Room Application With Laravel • 7 months ago

I want to build a chat room application with laravel that involves people around my community, i don't want people from other community to have access.

So in my form i have a field that requested for the community a user is from:

Please i want help to understand what i am going to do here?

31st October, 2017

enexspecial started a new conversation Please How Can I Solve This Error: Page Not Found • 7 months ago

Here is my Route: Route::post('/addFriend/(id)', '[email protected]');

Here is my controller:

namespace App\Http\Controllers;

use Illuminate\Http\Request; use DB; use Auth;

class searchController extends Controller { public function __construct() { $this->middleware('auth'); }

public function index()
{
  $uid  = Auth::user()->id;
    $allUsers = DB::table("profiles")->leftJoin("users", "users.id", "=", "profiles.user_id")->where("users.id", "!=", $uid)->get();
  return view('community.search')->with(compact("allUsers"));
}

public function sendFriend($id)
{

  //echo $id;
  return Auth::user()->addFriend($id);
}

}

Here is Friendable File:

?php

namespace App\Traits; use App\Friendship;

trait Friendable {

public function test() { return 'hi'; }

public function addFriend($id) { $friendship = Friendship::create([ 'requester' => $this->id, 'user_requested' => $id, ]); if($frienship){ return $friendship; } return "Failed";

} }

enexspecial left a reply on Hello My Awesome Community Please How Can I Solve This Error Page Not Found: • 7 months ago

here is my route Route::post('/addFriend/(id)', '[email protected]');

enexspecial started a new conversation Hello My Awesome Community Please How Can I Solve This Error Page Not Found: • 7 months ago

I am trying to create a friend request system here is are my files: public function addFriend($id) { $friendship = Friendship::create([ 'requester' => $this->id, 'user_requested' => $id, ]); if($frienship){ return $friendship; } return "Failed";

}

here is my controller: public function index() { $uid = Auth::user()->id; $allUsers = DB::table("profiles")->leftJoin("users", "users.id", "=", "profiles.user_id")->where("users.id", "!=", $uid)->get(); return view('community.search')->with(compact("allUsers")); }

public function sendFriend($id)
{

  //echo $id;
  return Auth::user()->addFriend($id);
}

here is my blade file:

@foreach($allUsers as $userList)

{{$userList->name}}

Profile Pix

{{$userList->community}}

Add a Friend

@endforeach

26th October, 2017

enexspecial left a reply on How Can I Solve This Error:422 (Unprocessable Entity) • 7 months ago

ok i have read the page but and i have added the enctype = "multipart/form-data"

i did a console.log(data.responseJSON.message);

i got this error message [The given data was invalid.] So please explain to me cause i don't understand it anymore

enexspecial left a reply on How Can I Solve This Error:422 (Unprocessable Entity) • 7 months ago

Here is the form:

{{Form::Open(['action'=> '[email protected]', 'id'=>'dis-form' ,'method'=>'post','files'=>true])}}
                  <div class="form-group">
                    {{Form::label('interest', 'Topic of Interest',['class'=>'control-label'])}}
                    <div class="">
                      {{Form::select('interest_id',$interest,null,['id'=>'interest_id', 'class'=>'form-control'])}}
                    </div>
                  </div>
                  <div class="form-group">
                    {{Form::label('title', 'Give a Title',['class'=>'control-label'])}}
                    <div class="">
                        {{Form::text('title','',['class'=>'form-control input-sm', 'id'=>'title'])}}
                    </div>
                  </div>
                  <div class="form-group">
                    {{Form::label('picturevideo', 'Upload',['class'=>'control-label'])}}
                    <div class="">
                      <input type="file" name="picturevideo" id="picturevideo" class="form-control input-sm">
                    </div>

                  </div>

                  <div class="form-group">
                    {{Form::label('body', 'Let\'s Talk',['class'=>'control-label'])}}
                    <div class="">
                        {{Form::textarea('body','',['id'=>'body','class'=>'form-control input-sm', 'rows' => '10'])}}
                    </div>
                  </div>
                  <button type="submit" class="btn btn-primary">Start Discussion</button>
                {{Form::Close()}}

25th October, 2017

enexspecial started a new conversation How Can I Solve This Error:422 (Unprocessable Entity) • 7 months ago

Here is my javascript code:

$("#dis-form").on("submit", function(e){ e.preventDefault(); var token = $('input[name=token]').val(); var interest_id = $('#interest_id').val(); var title = $('#title').val(); var picturevideo = $('#picturevideo').val(); var body = $('#body').val(); var url = $(this).attr('action'); var post = $(this).attr('method');

$.ajax({
      type     : post,
      url      : url,
      data     : {'token':token,'interest_id':interest_id,'title':title,'picturevideo':picturevideo,'body':body },
      contentType : "application/json",
      success: function(data){
        console.log(data);
      },
      error: function(data){
        console.log(data);
      }
});

}); Here is my controller public function postDiscuss(Request $request) { $this->validate($request, [ 'interest' =>'required', 'title' => 'required', 'picturevideo' => 'required|mimes:jpg,jpeg,gif,mp4,mpeg,avi|max:5000000', 'body' => 'required' ]);

  if($request->ajax())
  {
    $discuss = new Discuss();
    $dicuss->user_id = Auth::user()->id;
    $discuss['interest_id'] = $request['interest_id'];
    $discuss['title'] = $request->title;
    if(Input::hasFile('picturevideo')){
      $file             = Input::file('picturevideo');
      $allowedfileTypes = config('app.allowedfileTypes');
      $filename         = $file->getClientOrginalName();
      $destinationPath  = config('app.fileDestinationPath').'/'.$filename;
      $uploded          = Storage::put($destinationPath, file_get_contents($file->getRealPath()));
      if($uploaded){
        $discuss['picturevideo'] = $request->$filename;
      }
    }
    $discuss['body'] = $request->body;
    if($discuss->save()){
        return response($discuss);
    }
  }
}

Please how can i solve this issues

15th October, 2017

enexspecial started a new conversation How Can I Solve This Error Message: Creating Default Object From Empty Value • 8 months ago

Here is my controller:

14th October, 2017

enexspecial started a new conversation Can I Use Vue Js And Laravel Together? • 8 months ago

I am having taught on using laravel and vue js together will it work and if yes how ?

enexspecial left a reply on How Can I Solve This Issue : Undefined Variable: Inter • 8 months ago

Hi @ tisuchi i have still the same error

enexspecial started a new conversation How Can I Solve This Issue : Undefined Variable: Inter • 8 months ago

Here is my HTML FILE

{{Form::label('interest', 'Topic of Interest',['class'=>'control-label'])}} {!!Form::select('interest_id',$inter,null, ['id'=>'interest_id', 'class'=>'form-control'])!!}

Here is my Route: Route::get('/campaign', [ 'uses' => '[email protected]', 'as' => 'community.campaign' ]);

Route::post('/discuss', [ 'uses'=>'[email protected]', 'as' => 'community.campaign' ]);

Here is my Controller: namespace App\Http\Controllers;

use Illuminate\Http\Request; use Validator; use Auth; use App\interest; use App\Discuss;

class discussController extends Controller {

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

public function getCampaign()
{
  return view('community.campaign', ['inter'=>interest::pluck('interest_name', 'id')]);
}

10th October, 2017

enexspecial started a new conversation Class 'App\Http\Controllers\Auth\Role' Not Found • 8 months ago

I want to create a default role for users on registeration

Here is my controller:

4th October, 2017

enexspecial started a new conversation Please Help Me Solve This Error: [Creating Default Object From Empty Value] • 8 months ago

I am trying to create a profile page that includes adding of image and i got this error [Creating default object from empty value].

Here is my migration file: public function up() { Schema::create('profiles', function (Blueprint $table) { $table->increments('id'); $table->integer('user_id'); $table->string('photo'); $table->string('address'); $table->string('ethnicity'); $table->string('state'); $table->timestamps(); }); }

Here is my controller public function store(Request $request) { //validate form $this->validate($request,[ 'photo' => 'required|mimes:jpg,png,jpeg,bmp', 'address' => 'required|max:191', 'ethnic' => 'required|min:3', 'state' => 'required', ]); Session(); $user = new User; $profiles = new profile; $profiles->photo = $request->input('photo'); $profiles->address = $request->input('address'); $profiles->ethnic = $request->input('ethnic'); $profiles->state = $request->input('state'); $profile->user_id = auth()->user()->id; return auth()->user()->id; exit(); } Here is my form:

{{csrf_field()}} Fullname My Location Mobile Upload Picture Home Address Ethnicity State of Origin Submit Profile
</div>

3rd October, 2017

enexspecial left a reply on I Cannot Solve This Error Code (Function Must Be A String) • 8 months ago

Thank you very much it helped alot

Edit Your Profile
Update

Want to change your profile photo? We pull from gravatar.com.