
Web/Mobile app developer| Freelancer | Founder | Tweet about Laravel and JavaScript.
Afghanistan
Joined July 2016
- Tweets285
- Following367
- Followers219
- Likes21.2K
#Laravel Tip of the day: Sometimes you may need to merge additional input to laravel request object, you can do that by using the $request->merge(['votes' => 0]) method. and if you want to check if the input was not present then merge, you can use the mergeIfMissing method.
#Laravel Tip of the day: When assigning middleware to a group of routes, you may occasionally need to prevent the middleware from being applied to an individual route within the group. You may accomplish this using the withoutMiddleware method:
Taken from Laravel Official Doc.
9
96
#Laravel tip of the day: Sometimes you may want to use a custom key for route model binding, for this, you can specify the column in the route parameter and then inside the model override the getRouteKeyName() method to specify the column.
5
82
#Laravel Tip of the day: Do you know if you want to constraint your route parameters, instead of using regular expressions you can use methods like whereNumber('id'), whereAlpha('name'), whereAlphaNumeric('name') and whereUuid('id').
#Laravel Tip: If you want to get a quick overview of your application configuration you can run "php artisan about command" also you can filter for specific configuration. for example "php artisan about --only=environment" will show only environment configuration.
Do you remember when you joined Twitter? I do! #MyTwitterAnniversary
Replying to @QaderiHomeira
همیشه به شما احترام خاص قائل بودم و هستم خانم قادری، اما باید سر منشاء این حرفها پیدا شود مثلا زمانیکه در مکتب عبدالرحیم شهید انفجار شد واکنش پشتون ها را ببینید که چی بود ولی شما بنام مصالح ملی آنهارانشرنکردید ولی حالا در مورد خوست و پکتیا چند روز است که به این مسئله دامن میزنید.
Day 1 and 2: I have learned some cool things about JSX and executed my first React example. #100daysofcodechallenge
#PHP Tip:
For combining or merging two arrays you can use the spread operator instead of the array_merge() method.
2
#Laravel Tip:
A better way of retrieving a record from the database.
#LaravelLivewire Pagination Tip: If you are using a bootstrap theme then it will not show the summary of records. For example, in Tailwind shows, Showing 1 to 10 of 100 results. We can achieve that by adding the following lines of code.
#LaravelLivewire Pagination Tip:
By default, livewire uses the Tailwind theme for pagination. but if you want to change the theme you can define a protected property. protected $paginationTheme = "bootstrap"; That will change the theme to bootstrap.
1














