Customer::insert([ 'customer_name' => $request->customer_name, 'customer_mobile'=> $request->customer_mobile, 'user_id'=>Auth::user()->id, 'created_at'=> Carbon::now() ]);
$userId = Auth::id();
Also in PHP:
- echo errors of php
- Artisan namespace
- check if substring is present in string php
- array remove duplicate values php
- doctrine order by
- artisan seed
- SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 767
- redirect php file
- date du joure n php
- base64 decode encode php
- can users change header location php
- ccodeignter insert return inserred id where
- check if array contains a key php
- PHP Startup: Unable to load dynamic library 'curl'
- Method Illuminate\Database\Eloquent\Collection::save does not exist.
- check array has key php
- How to add validation form image in laravel
- auto generated password in php
- development wordpress plugin
- bulk seed in laravel with update or create
- echo command in browser console
- alert in php
- associative array rev in php
- To print current time which function will use in pphp