Laravel 5.5 save filename to database as *.tmp - development
Laravel 5.5 save filename to database as *.tmp I want to save my post with linked image/ My model: class Performer extends Model { protected $fillable = ['title','slug','logoimage','description','address','toplace','exp','workers','published','created_by','modified_by']; public function categories() { return $this->morphToMany('AppCategory', 'categoryable'); } public function SetSlugAttribute($value) { $this->attributes['slug'] = Str::slug(mb_substr($this->title, 0, 40) . "-". CarbonCarbon::now()->format('dmyHi'), '-'); } } My controller: public function store(Request $request) { // dd($request); $performer = Performer::create($request->all()); if ($request->input('categories')){ $performer->categories()->attach($request->input('categ...