20 | Start writing your portfolio easily and fun.
21 |
22 | Report Bug
23 |
25 |
26 |
27 |
28 |
29 |
30 | ## About The Project
31 |
32 | This project started when I wanted to create a website that was used to represent the results of the project I created. Many out there have made it like this, but I am more challenged to develop this portfolio website using existing references.
33 |
34 | Why use this:
35 |
36 | - Make it easier for you to share the results of your projects with the world
37 | - Writing portfolios becomes more efficient anytime and anywhere
38 | - Responsive user interface
39 |
40 | Of course, this project wouldn't be perfect without references from great people out there. Thanks to everyone for supporting me to develop this project!
41 |
42 | ### Built With
43 |
44 | This project uses the following framework:
45 |
46 | - Laravel
47 | - Tailwind CSS
48 |
49 | This project uses the following tools & plugin:
50 |
51 | - Trix Editor
52 | - Eloquent Sluggable
53 | - Line Clamp
54 |
55 |
56 |
57 | ### Features
58 | The project has features such as:
59 |
60 | Homepage
61 | - About Section
62 | - Education Section
63 | - Skills Section
64 | - Projects Section
65 | - Services Section
66 |
67 | Admin Panel
68 | - Dashboard
69 | - Manage Project
70 | - Manage Category
71 | - Manage Account
72 |
73 |
74 |
75 | ### Screenshot
76 | ##### Home Page
77 |
78 | Show
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 | ##### Admin Panel
87 |
88 | Show
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 | ## Getting Started
99 |
100 | This is a step about setting up your project locally. To get a local copy up and running, follow these simple example steps.
101 |
102 | ### Prerequisites
103 |
104 | To clone and run this application, you'll need [Git](https://git-scm.com) and [Node.js](https://nodejs.org/en/download/) (which comes with [npm](http://npmjs.com)) installed on your computer.
105 |
106 | ### Installation
107 |
108 | _Below are the procedures for installing and setting up your app._
109 |
110 | 1. Clone the repo
111 | ```sh
112 | git clone https://github.com/irfanbakhtiar/larawind-portfolio.git
113 | ```
114 | 2. Install Composer
115 | ```sh
116 | composer install
117 | ```
118 | 3. Copy .env
119 | ```sh
120 | cp .env.example .env
121 | ```
122 | 4. Open .env change your field correspond to your configuration.
123 | ```sh
124 | DB_DATABASE
125 | ```
126 | ```sh
127 | DB_PASSWORD
128 | ```
129 | 5. Key generate
130 | ```sh
131 | php artisan key:generate
132 | ```
133 | 6. Migrate database
134 | ```sh
135 | php artisan migrate
136 | ```
137 | 7. Run server
138 | ```sh
139 | php artisan serve
140 | ```
141 | 8. Run your build process with new terminal
142 | ```sh
143 | npm run watch
144 | ```
145 | 9. Don't forget to symlink your storage
146 | ```sh
147 | php artisan storage:link
148 | ```
149 |
150 |
151 | ## Contact
152 |
153 | Muhammad Irfan Bakhtiar - m.irfanbakhtiar99@gmail.com
154 | Project Link: [https://github.com/irfanbakhtiar/larawind-portfolio](https://github.com/irfanbakhtiar/larawind-portfolio)
155 |
--------------------------------------------------------------------------------
/app/Http/Controllers/DashboardProjectController.php:
--------------------------------------------------------------------------------
1 | Projects::where('user_id', auth()->user()->id)->paginate(5),
25 | 'title' => 'Project',
26 | ]);
27 | }
28 |
29 | /**
30 | * Show the form for creating a new resource.
31 | *
32 | * @return \Illuminate\Http\Response
33 | */
34 | public function create()
35 | {
36 | return view('dashboard.project.create', [
37 | 'title' => 'Create Project',
38 | 'category' => Categories::all()
39 | ]);
40 | }
41 |
42 | /**
43 | * Store a newly created resource in storage.
44 | *
45 | * @param \Illuminate\Http\Request $request
46 | * @return \Illuminate\Http\Response
47 | */
48 | public function store(Request $request)
49 | {
50 |
51 | $validatedData = $request->validate([
52 | 'title' => 'required|max:100',
53 | 'slug' => 'required|unique:projects',
54 | 'categories_id' => 'required',
55 | 'image' => 'image|mimes:jpeg,png,jpg|max:1024|dimensions:max_width=700,max_height=360,min_width=360,min_height=360',
56 | 'body' => 'required'
57 | ]);
58 |
59 | if ($request->file('image')) {
60 | $validatedData['image'] = $request->file('image')->store('project-images');
61 | }
62 | $validatedData['user_id'] = auth()->user()->id;
63 | $validatedData['excerpt'] = Str::limit(strip_tags($request->body), 190);
64 |
65 | Projects::create($validatedData);
66 | return redirect('/dashboard/project')->with('success', 'New project has been added!');
67 | }
68 |
69 | /**
70 | * Display the specified resource.
71 | *
72 | * @param \App\Models\Projects $projects
73 | * @return \Illuminate\Http\Response
74 | */
75 | public function show(Projects $project)
76 | {
77 | return view('dashboard.project.show', [
78 | 'projects' => $project,
79 | 'title' => 'Project',
80 | ]);
81 | }
82 |
83 | /**
84 | * Show the form for editing the specified resource.
85 | *
86 | * @param \App\Models\Projects $projects
87 | * @return \Illuminate\Http\Response
88 | */
89 | public function edit(Projects $project)
90 | {
91 | return view('dashboard.project.edit', [
92 | 'projects' => $project,
93 | 'title' => 'Edit Project',
94 | 'category' => Categories::all()
95 | ]);
96 | }
97 |
98 | /**
99 | * Update the specified resource in storage.
100 | *
101 | * @param \Illuminate\Http\Request $request
102 | * @param \App\Models\Projects $projects
103 | * @return \Illuminate\Http\Response
104 | */
105 | public function update(Request $request, Projects $project)
106 | {
107 | $rules = [
108 | 'title' => 'required|max:100',
109 | 'categories_id' => 'required',
110 | 'image' => 'image|mimes:jpeg,png,jpg|max:1024|dimensions:max_width=700,max_height=360,min_width=360,min_height=360',
111 | 'body' => 'required'
112 | ];
113 |
114 | if ($request->slug != $project->slug) {
115 | $rules['slug'] = 'required|unique:projects';
116 | }
117 |
118 | $validatedData = $request->validate($rules);
119 |
120 | if ($request->file('image')) {
121 | if ($request->oldImage) {
122 | Storage::delete($request->oldImage);
123 | }
124 | $validatedData['image'] = $request->file('image')->store('project-images');
125 | }
126 |
127 | $validatedData['user_id'] = auth()->user()->id;
128 | $validatedData['excerpt'] = Str::limit(strip_tags($request->body), 190);
129 |
130 | Projects::where('id', $project->id)
131 | ->update($validatedData);
132 | return redirect('/dashboard/project')->with('success', 'Project has been update!');
133 | }
134 |
135 | /**
136 | * Remove the specified resource from storage.
137 | *
138 | * @param \App\Models\Projects $projects
139 | * @return \Illuminate\Http\Response
140 | */
141 | public function destroy(Projects $project)
142 | {
143 | if ($project->image) {
144 | Storage::delete($project->image);
145 | }
146 | Projects::destroy($project->id);
147 | return redirect('/dashboard/project')->with('success', 'Project has been deleted!');
148 | }
149 |
150 | public function checkSlug(Request $request)
151 | {
152 | $slug = SlugService::createSlug(Projects::class, 'slug', $request->title);
153 | return response()->json(['slug' => $slug]);
154 | }
155 | }
156 |
--------------------------------------------------------------------------------
/config/database.php:
--------------------------------------------------------------------------------
1 | env('DB_CONNECTION', 'mysql'),
19 |
20 | /*
21 | |--------------------------------------------------------------------------
22 | | Database Connections
23 | |--------------------------------------------------------------------------
24 | |
25 | | Here are each of the database connections setup for your application.
26 | | Of course, examples of configuring each database platform that is
27 | | supported by Laravel is shown below to make development simple.
28 | |
29 | |
30 | | All database work in Laravel is done through the PHP PDO facilities
31 | | so make sure you have the driver for your particular database of
32 | | choice installed on your machine before you begin development.
33 | |
34 | */
35 |
36 | 'connections' => [
37 |
38 | 'sqlite' => [
39 | 'driver' => 'sqlite',
40 | 'url' => env('DATABASE_URL'),
41 | 'database' => env('DB_DATABASE', database_path('database.sqlite')),
42 | 'prefix' => '',
43 | 'foreign_key_constraints' => env('DB_FOREIGN_KEYS', true),
44 | ],
45 |
46 | 'mysql' => [
47 | 'driver' => 'mysql',
48 | 'url' => env('DATABASE_URL'),
49 | 'host' => env('DB_HOST', '127.0.0.1'),
50 | 'port' => env('DB_PORT', '3306'),
51 | 'database' => env('DB_DATABASE', 'forge'),
52 | 'username' => env('DB_USERNAME', 'forge'),
53 | 'password' => env('DB_PASSWORD', ''),
54 | 'unix_socket' => env('DB_SOCKET', ''),
55 | 'charset' => 'utf8mb4',
56 | 'collation' => 'utf8mb4_unicode_ci',
57 | 'prefix' => '',
58 | 'prefix_indexes' => true,
59 | 'strict' => true,
60 | 'engine' => null,
61 | 'options' => extension_loaded('pdo_mysql') ? array_filter([
62 | PDO::MYSQL_ATTR_SSL_CA => env('MYSQL_ATTR_SSL_CA'),
63 | ]) : [],
64 | ],
65 |
66 | 'pgsql' => [
67 | 'driver' => 'pgsql',
68 | 'url' => env('DATABASE_URL'),
69 | 'host' => env('DB_HOST', '127.0.0.1'),
70 | 'port' => env('DB_PORT', '5432'),
71 | 'database' => env('DB_DATABASE', 'forge'),
72 | 'username' => env('DB_USERNAME', 'forge'),
73 | 'password' => env('DB_PASSWORD', ''),
74 | 'charset' => 'utf8',
75 | 'prefix' => '',
76 | 'prefix_indexes' => true,
77 | 'schema' => 'public',
78 | 'sslmode' => 'prefer',
79 | ],
80 |
81 | 'sqlsrv' => [
82 | 'driver' => 'sqlsrv',
83 | 'url' => env('DATABASE_URL'),
84 | 'host' => env('DB_HOST', 'localhost'),
85 | 'port' => env('DB_PORT', '1433'),
86 | 'database' => env('DB_DATABASE', 'forge'),
87 | 'username' => env('DB_USERNAME', 'forge'),
88 | 'password' => env('DB_PASSWORD', ''),
89 | 'charset' => 'utf8',
90 | 'prefix' => '',
91 | 'prefix_indexes' => true,
92 | ],
93 |
94 | ],
95 |
96 | /*
97 | |--------------------------------------------------------------------------
98 | | Migration Repository Table
99 | |--------------------------------------------------------------------------
100 | |
101 | | This table keeps track of all the migrations that have already run for
102 | | your application. Using this information, we can determine which of
103 | | the migrations on disk haven't actually been run in the database.
104 | |
105 | */
106 |
107 | 'migrations' => 'migrations',
108 |
109 | /*
110 | |--------------------------------------------------------------------------
111 | | Redis Databases
112 | |--------------------------------------------------------------------------
113 | |
114 | | Redis is an open source, fast, and advanced key-value store that also
115 | | provides a richer body of commands than a typical key-value system
116 | | such as APC or Memcached. Laravel makes it easy to dig right in.
117 | |
118 | */
119 |
120 | 'redis' => [
121 |
122 | 'client' => env('REDIS_CLIENT', 'phpredis'),
123 |
124 | 'options' => [
125 | 'cluster' => env('REDIS_CLUSTER', 'redis'),
126 | 'prefix' => env('REDIS_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_').'_database_'),
127 | ],
128 |
129 | 'default' => [
130 | 'url' => env('REDIS_URL'),
131 | 'host' => env('REDIS_HOST', '127.0.0.1'),
132 | 'password' => env('REDIS_PASSWORD', null),
133 | 'port' => env('REDIS_PORT', '6379'),
134 | 'database' => env('REDIS_DB', '0'),
135 | ],
136 |
137 | 'cache' => [
138 | 'url' => env('REDIS_URL'),
139 | 'host' => env('REDIS_HOST', '127.0.0.1'),
140 | 'password' => env('REDIS_PASSWORD', null),
141 | 'port' => env('REDIS_PORT', '6379'),
142 | 'database' => env('REDIS_CACHE_DB', '1'),
143 | ],
144 |
145 | ],
146 |
147 | ];
148 |
--------------------------------------------------------------------------------
/config/sluggable.php:
--------------------------------------------------------------------------------
1 | name;
10 | *
11 | * Or it can be an array of fields, like ["name", "company"], which builds a slug from:
12 | *
13 | * $model->name . ' ' . $model->company;
14 | *
15 | * If you've defined custom getters in your model, you can use those too,
16 | * since Eloquent will call them when you request a custom attribute.
17 | *
18 | * Defaults to null, which uses the toString() method on your model.
19 | */
20 |
21 | 'source' => null,
22 |
23 | /**
24 | * The maximum length of a generated slug. Defaults to "null", which means
25 | * no length restrictions are enforced. Set it to a positive integer if you
26 | * want to make sure your slugs aren't too long.
27 | */
28 |
29 | 'maxLength' => null,
30 |
31 | /**
32 | * If you are setting a maximum length on your slugs, you may not want the
33 | * truncated string to split a word in half. The default setting of "true"
34 | * will ensure this, e.g. with a maxLength of 12:
35 | *
36 | * "my source string" -> "my-source"
37 | *
38 | * Setting it to "false" will simply truncate the generated slug at the
39 | * desired length, e.g.:
40 | *
41 | * "my source string" -> "my-source-st"
42 | */
43 |
44 | 'maxLengthKeepWords' => true,
45 |
46 | /**
47 | * If left to "null", then use the cocur/slugify package to generate the slug
48 | * (with the separator defined below).
49 | *
50 | * Set this to a closure that accepts two parameters (string and separator)
51 | * to define a custom slugger. e.g.:
52 | *
53 | * 'method' => function( $string, $sep ) {
54 | * return preg_replace('/[^a-z]+/i', $sep, $string);
55 | * },
56 | *
57 | * Otherwise, this will be treated as a callable to be used. e.g.:
58 | *
59 | * 'method' => array('Str','slug'),
60 | */
61 |
62 | 'method' => null,
63 |
64 | /**
65 | * Separator to use when generating slugs. Defaults to a hyphen.
66 | */
67 |
68 | 'separator' => '-',
69 |
70 | /**
71 | * Enforce uniqueness of slugs? Defaults to true.
72 | * If a generated slug already exists, an incremental numeric
73 | * value will be appended to the end until a unique slug is found. e.g.:
74 | *
75 | * my-slug
76 | * my-slug-1
77 | * my-slug-2
78 | */
79 |
80 | 'unique' => true,
81 |
82 | /**
83 | * If you are enforcing unique slugs, the default is to add an
84 | * incremental value to the end of the base slug. Alternatively, you
85 | * can change this value to a closure that accepts three parameters:
86 | * the base slug, the separator, and a Collection of the other
87 | * "similar" slugs. The closure should return the new unique
88 | * suffix to append to the slug.
89 | */
90 |
91 | 'uniqueSuffix' => null,
92 |
93 | /**
94 | * What is the first suffix to add to a slug to make it unique?
95 | * For the default method of adding incremental integers, we start
96 | * counting at 2, so the list of slugs would be, e.g.:
97 | *
98 | * - my-post
99 | * - my-post-2
100 | * - my-post-3
101 | */
102 | 'firstUniqueSuffix' => 2,
103 |
104 | /**
105 | * Should we include the trashed items when generating a unique slug?
106 | * This only applies if the softDelete property is set for the Eloquent model.
107 | * If set to "false", then a new slug could duplicate one that exists on a trashed model.
108 | * If set to "true", then uniqueness is enforced across trashed and existing models.
109 | */
110 |
111 | 'includeTrashed' => false,
112 |
113 | /**
114 | * An array of slug names that can never be used for this model,
115 | * e.g. to prevent collisions with existing routes or controller methods, etc..
116 | * Defaults to null (i.e. no reserved names).
117 | * Can be a static array, e.g.:
118 | *
119 | * 'reserved' => array('add', 'delete'),
120 | *
121 | * or a closure that returns an array of reserved names.
122 | * If using a closure, it will accept one parameter: the model itself, and should
123 | * return an array of reserved names, or null. e.g.
124 | *
125 | * 'reserved' => function( Model $model) {
126 | * return $model->some_method_that_returns_an_array();
127 | * }
128 | *
129 | * In the case of a slug that gets generated with one of these reserved names,
130 | * we will do:
131 | *
132 | * $slug .= $separator + "1"
133 | *
134 | * and continue from there.
135 | */
136 |
137 | 'reserved' => null,
138 |
139 | /**
140 | * Whether to update the slug value when a model is being
141 | * re-saved (i.e. already exists). Defaults to false, which
142 | * means slugs are not updated.
143 | *
144 | * Be careful! If you are using slugs to generate URLs, then
145 | * updating your slug automatically might change your URLs which
146 | * is probably not a good idea from an SEO point of view.
147 | * Only set this to true if you understand the possible consequences.
148 | */
149 |
150 | 'onUpdate' => false,
151 |
152 | /**
153 | * If the default slug engine of cocur/slugify is used, this array of
154 | * configuration options will be used when instantiating the engine.
155 | */
156 | 'slugEngineOptions' => [],
157 |
158 | ];
159 |
--------------------------------------------------------------------------------
/config/session.php:
--------------------------------------------------------------------------------
1 | env('SESSION_DRIVER', 'file'),
22 |
23 | /*
24 | |--------------------------------------------------------------------------
25 | | Session Lifetime
26 | |--------------------------------------------------------------------------
27 | |
28 | | Here you may specify the number of minutes that you wish the session
29 | | to be allowed to remain idle before it expires. If you want them
30 | | to immediately expire on the browser closing, set that option.
31 | |
32 | */
33 |
34 | 'lifetime' => env('SESSION_LIFETIME', 120),
35 |
36 | 'expire_on_close' => false,
37 |
38 | /*
39 | |--------------------------------------------------------------------------
40 | | Session Encryption
41 | |--------------------------------------------------------------------------
42 | |
43 | | This option allows you to easily specify that all of your session data
44 | | should be encrypted before it is stored. All encryption will be run
45 | | automatically by Laravel and you can use the Session like normal.
46 | |
47 | */
48 |
49 | 'encrypt' => false,
50 |
51 | /*
52 | |--------------------------------------------------------------------------
53 | | Session File Location
54 | |--------------------------------------------------------------------------
55 | |
56 | | When using the native session driver, we need a location where session
57 | | files may be stored. A default has been set for you but a different
58 | | location may be specified. This is only needed for file sessions.
59 | |
60 | */
61 |
62 | 'files' => storage_path('framework/sessions'),
63 |
64 | /*
65 | |--------------------------------------------------------------------------
66 | | Session Database Connection
67 | |--------------------------------------------------------------------------
68 | |
69 | | When using the "database" or "redis" session drivers, you may specify a
70 | | connection that should be used to manage these sessions. This should
71 | | correspond to a connection in your database configuration options.
72 | |
73 | */
74 |
75 | 'connection' => env('SESSION_CONNECTION', null),
76 |
77 | /*
78 | |--------------------------------------------------------------------------
79 | | Session Database Table
80 | |--------------------------------------------------------------------------
81 | |
82 | | When using the "database" session driver, you may specify the table we
83 | | should use to manage the sessions. Of course, a sensible default is
84 | | provided for you; however, you are free to change this as needed.
85 | |
86 | */
87 |
88 | 'table' => 'sessions',
89 |
90 | /*
91 | |--------------------------------------------------------------------------
92 | | Session Cache Store
93 | |--------------------------------------------------------------------------
94 | |
95 | | While using one of the framework's cache driven session backends you may
96 | | list a cache store that should be used for these sessions. This value
97 | | must match with one of the application's configured cache "stores".
98 | |
99 | | Affects: "apc", "dynamodb", "memcached", "redis"
100 | |
101 | */
102 |
103 | 'store' => env('SESSION_STORE', null),
104 |
105 | /*
106 | |--------------------------------------------------------------------------
107 | | Session Sweeping Lottery
108 | |--------------------------------------------------------------------------
109 | |
110 | | Some session drivers must manually sweep their storage location to get
111 | | rid of old sessions from storage. Here are the chances that it will
112 | | happen on a given request. By default, the odds are 2 out of 100.
113 | |
114 | */
115 |
116 | 'lottery' => [2, 100],
117 |
118 | /*
119 | |--------------------------------------------------------------------------
120 | | Session Cookie Name
121 | |--------------------------------------------------------------------------
122 | |
123 | | Here you may change the name of the cookie used to identify a session
124 | | instance by ID. The name specified here will get used every time a
125 | | new session cookie is created by the framework for every driver.
126 | |
127 | */
128 |
129 | 'cookie' => env(
130 | 'SESSION_COOKIE',
131 | Str::slug(env('APP_NAME', 'laravel'), '_').'_session'
132 | ),
133 |
134 | /*
135 | |--------------------------------------------------------------------------
136 | | Session Cookie Path
137 | |--------------------------------------------------------------------------
138 | |
139 | | The session cookie path determines the path for which the cookie will
140 | | be regarded as available. Typically, this will be the root path of
141 | | your application but you are free to change this when necessary.
142 | |
143 | */
144 |
145 | 'path' => '/',
146 |
147 | /*
148 | |--------------------------------------------------------------------------
149 | | Session Cookie Domain
150 | |--------------------------------------------------------------------------
151 | |
152 | | Here you may change the domain of the cookie used to identify a session
153 | | in your application. This will determine which domains the cookie is
154 | | available to in your application. A sensible default has been set.
155 | |
156 | */
157 |
158 | 'domain' => env('SESSION_DOMAIN', null),
159 |
160 | /*
161 | |--------------------------------------------------------------------------
162 | | HTTPS Only Cookies
163 | |--------------------------------------------------------------------------
164 | |
165 | | By setting this option to true, session cookies will only be sent back
166 | | to the server if the browser has a HTTPS connection. This will keep
167 | | the cookie from being sent to you when it can't be done securely.
168 | |
169 | */
170 |
171 | 'secure' => env('SESSION_SECURE_COOKIE'),
172 |
173 | /*
174 | |--------------------------------------------------------------------------
175 | | HTTP Access Only
176 | |--------------------------------------------------------------------------
177 | |
178 | | Setting this value to true will prevent JavaScript from accessing the
179 | | value of the cookie and the cookie will only be accessible through
180 | | the HTTP protocol. You are free to modify this option if needed.
181 | |
182 | */
183 |
184 | 'http_only' => true,
185 |
186 | /*
187 | |--------------------------------------------------------------------------
188 | | Same-Site Cookies
189 | |--------------------------------------------------------------------------
190 | |
191 | | This option determines how your cookies behave when cross-site requests
192 | | take place, and can be used to mitigate CSRF attacks. By default, we
193 | | will set this value to "lax" since this is a secure default value.
194 | |
195 | | Supported: "lax", "strict", "none", null
196 | |
197 | */
198 |
199 | 'same_site' => 'lax',
200 |
201 | ];
202 |
--------------------------------------------------------------------------------
/database/seeders/DatabaseSeeder.php:
--------------------------------------------------------------------------------
1 | 'admin',
21 | 'name' => 'Muhammad Irfan Bakhtiar',
22 | 'email' => 'admin@gmail.com',
23 | 'job' => 'Front End Developer',
24 | 'location' => 'Central Java, Indonesia',
25 | 'about' => 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.',
26 | 'password' => bcrypt('Larawind2023')
27 | ]);
28 |
29 | Categories::create([
30 | 'name' => 'Dekstop',
31 | 'slug' => 'dekstop',
32 | 'user_id' => 1
33 | ]);
34 |
35 | Categories::create([
36 | 'name' => 'Mobile Apps',
37 | 'slug' => 'mobile-apps',
38 | 'user_id' => 1
39 | ]);
40 |
41 | Categories::create([
42 | 'name' => 'Website',
43 | 'slug' => 'website',
44 | 'user_id' => 1
45 | ]);
46 |
47 | Projects::create([
48 | 'title' => 'First Project',
49 | 'slug' => 'first-project',
50 | 'excerpt' => 'Lorem ipsum dolor sit amet consectetur, adipisicing elit. Eius maiores quam tenetur rerum nihil corporis quisquam odio in, laudantium rem ex',
51 | 'body' => 'Lorem ipsum dolor sit amet consectetur, adipisicing elit. Eius maiores quam tenetur rerum nihil corporis quisquam odio in, laudantium rem ex ullam tempore delectus beatae similique amet eligendi at perferendis, quidem, quod est consequatur! Temporibus perferendis et doloribus illum minima cumque velit. Quibusdam nemo doloribus aut minus sunt aliquam excepturi ut, dignissimos cumque adipisci unde fugit at quis quia rerum quaerat sit ullam provident accusantium expedita ratione? Vero, maiores? Optio similique autem quas vitae accusantium totam consectetur possimus veritatis ducimus labore molestiae voluptatibus, aliquid cum doloremque. Sit tempore praesentium esse eaque nesciunt ipsum sed accusamus unde rem, tenetur, dolores pariatur.',
52 | 'categories_id' => 1,
53 | 'user_id' => 1
54 | ]);
55 |
56 | Projects::create([
57 | 'title' => 'Second Project',
58 | 'slug' => 'second-project',
59 | 'excerpt' => 'Lorem ipsum dolor sit amet consectetur, adipisicing elit. Eius maiores quam tenetur rerum nihil corporis quisquam odio in, laudantium rem ex',
60 | 'body' => 'Lorem ipsum dolor sit amet consectetur, adipisicing elit. Eius maiores quam tenetur rerum nihil corporis quisquam odio in, laudantium rem ex ullam tempore delectus beatae similique amet eligendi at perferendis, quidem, quod est consequatur! Temporibus perferendis et doloribus illum minima cumque velit. Quibusdam nemo doloribus aut minus sunt aliquam excepturi ut, dignissimos cumque adipisci unde fugit at quis quia rerum quaerat sit ullam provident accusantium expedita ratione? Vero, maiores? Optio similique autem quas vitae accusantium totam consectetur possimus veritatis ducimus labore molestiae voluptatibus, aliquid cum doloremque. Sit tempore praesentium esse eaque nesciunt ipsum sed accusamus unde rem, tenetur, dolores pariatur.',
61 | 'categories_id' => 1,
62 | 'user_id' => 1
63 | ]);
64 |
65 | Projects::create([
66 | 'title' => 'Third Project',
67 | 'slug' => 'third-project',
68 | 'excerpt' => 'Lorem ipsum dolor sit amet consectetur, adipisicing elit. Eius maiores quam tenetur rerum nihil corporis quisquam odio in, laudantium rem ex',
69 | 'body' => 'Lorem ipsum dolor sit amet consectetur, adipisicing elit. Eius maiores quam tenetur rerum nihil corporis quisquam odio in, laudantium rem ex ullam tempore delectus beatae similique amet eligendi at perferendis, quidem, quod est consequatur! Temporibus perferendis et doloribus illum minima cumque velit. Quibusdam nemo doloribus aut minus sunt aliquam excepturi ut, dignissimos cumque adipisci unde fugit at quis quia rerum quaerat sit ullam provident accusantium expedita ratione? Vero, maiores? Optio similique autem quas vitae accusantium totam consectetur possimus veritatis ducimus labore molestiae voluptatibus, aliquid cum doloremque. Sit tempore praesentium esse eaque nesciunt ipsum sed accusamus unde rem, tenetur, dolores pariatur.',
70 | 'categories_id' => 2,
71 | 'user_id' => 1
72 | ]);
73 |
74 | Projects::create([
75 | 'title' => 'Fourth Project',
76 | 'slug' => 'fourth-project',
77 | 'excerpt' => 'Lorem ipsum dolor sit amet consectetur, adipisicing elit. Eius maiores quam tenetur rerum nihil corporis quisquam odio in, laudantium rem ex',
78 | 'body' => 'Lorem ipsum dolor sit amet consectetur, adipisicing elit. Eius maiores quam tenetur rerum nihil corporis quisquam odio in, laudantium rem ex ullam tempore delectus beatae similique amet eligendi at perferendis, quidem, quod est consequatur! Temporibus perferendis et doloribus illum minima cumque velit. Quibusdam nemo doloribus aut minus sunt aliquam excepturi ut, dignissimos cumque adipisci unde fugit at quis quia rerum quaerat sit ullam provident accusantium expedita ratione? Vero, maiores? Optio similique autem quas vitae accusantium totam consectetur possimus veritatis ducimus labore molestiae voluptatibus, aliquid cum doloremque. Sit tempore praesentium esse eaque nesciunt ipsum sed accusamus unde rem, tenetur, dolores pariatur.',
79 | 'categories_id' => 3,
80 | 'user_id' => 1
81 | ]);
82 |
83 | Projects::create([
84 | 'title' => 'Fifth Project',
85 | 'slug' => 'fifth-project',
86 | 'excerpt' => 'Lorem ipsum dolor sit amet consectetur, adipisicing elit. Eius maiores quam tenetur rerum nihil corporis quisquam odio in, laudantium rem ex',
87 | 'body' => 'Lorem ipsum dolor sit amet consectetur, adipisicing elit. Eius maiores quam tenetur rerum nihil corporis quisquam odio in, laudantium rem ex ullam tempore delectus beatae similique amet eligendi at perferendis, quidem, quod est consequatur! Temporibus perferendis et doloribus illum minima cumque velit. Quibusdam nemo doloribus aut minus sunt aliquam excepturi ut, dignissimos cumque adipisci unde fugit at quis quia rerum quaerat sit ullam provident accusantium expedita ratione? Vero, maiores? Optio similique autem quas vitae accusantium totam consectetur possimus veritatis ducimus labore molestiae voluptatibus, aliquid cum doloremque. Sit tempore praesentium esse eaque nesciunt ipsum sed accusamus unde rem, tenetur, dolores pariatur.',
88 | 'categories_id' => 3,
89 | 'user_id' => 1
90 | ]);
91 |
92 | Projects::create([
93 | 'title' => 'Sixth Project',
94 | 'slug' => 'sixth-project',
95 | 'excerpt' => 'Lorem ipsum dolor sit amet consectetur, adipisicing elit. Eius maiores quam tenetur rerum nihil corporis quisquam odio in, laudantium rem ex',
96 | 'body' => 'Lorem ipsum dolor sit amet consectetur, adipisicing elit. Eius maiores quam tenetur rerum nihil corporis quisquam odio in, laudantium rem ex ullam tempore delectus beatae similique amet eligendi at perferendis, quidem, quod est consequatur! Temporibus perferendis et doloribus illum minima cumque velit. Quibusdam nemo doloribus aut minus sunt aliquam excepturi ut, dignissimos cumque adipisci unde fugit at quis quia rerum quaerat sit ullam provident accusantium expedita ratione? Vero, maiores? Optio similique autem quas vitae accusantium totam consectetur possimus veritatis ducimus labore molestiae voluptatibus, aliquid cum doloremque. Sit tempore praesentium esse eaque nesciunt ipsum sed accusamus unde rem, tenetur, dolores pariatur.',
97 | 'categories_id' => 2,
98 | 'user_id' => 1
99 | ]);
100 | }
101 | }
102 |
--------------------------------------------------------------------------------
/resources/views/vendor/pagination/tailwind.blade.php:
--------------------------------------------------------------------------------
1 | @if ($paginator->hasPages())
2 |
136 | @endif
137 |
--------------------------------------------------------------------------------
/resources/views/dashboard/category/create.blade.php:
--------------------------------------------------------------------------------
1 | @extends('layouts.admin.main')
2 | @section('container')
3 | {{-- CONTENT MENU START --}}
4 |
5 |
6 |
7 |
8 |
50 |
51 |
52 |
53 | Create New Category
54 |
55 |
56 |
107 |
108 |
109 |
110 |
111 | {{-- CONTENT MENU END --}}
112 |
122 | @endsection
123 |
--------------------------------------------------------------------------------
/resources/views/layouts/foot.blade.php:
--------------------------------------------------------------------------------
1 |
2 |
7 | {{-- --}}
51 |
91 |
92 |
--------------------------------------------------------------------------------
/resources/lang/en/validation.php:
--------------------------------------------------------------------------------
1 | 'The :attribute must be accepted.',
17 | 'accepted_if' => 'The :attribute must be accepted when :other is :value.',
18 | 'active_url' => 'The :attribute is not a valid URL.',
19 | 'after' => 'The :attribute must be a date after :date.',
20 | 'after_or_equal' => 'The :attribute must be a date after or equal to :date.',
21 | 'alpha' => 'The :attribute must only contain letters.',
22 | 'alpha_dash' => 'The :attribute must only contain letters, numbers, dashes and underscores.',
23 | 'alpha_num' => 'The :attribute must only contain letters and numbers.',
24 | 'array' => 'The :attribute must be an array.',
25 | 'before' => 'The :attribute must be a date before :date.',
26 | 'before_or_equal' => 'The :attribute must be a date before or equal to :date.',
27 | 'between' => [
28 | 'numeric' => 'The :attribute must be between :min and :max.',
29 | 'file' => 'The :attribute must be between :min and :max kilobytes.',
30 | 'string' => 'The :attribute must be between :min and :max characters.',
31 | 'array' => 'The :attribute must have between :min and :max items.',
32 | ],
33 | 'boolean' => 'The :attribute field must be true or false.',
34 | 'confirmed' => 'The :attribute confirmation does not match.',
35 | 'current_password' => 'The password is incorrect.',
36 | 'date' => 'The :attribute is not a valid date.',
37 | 'date_equals' => 'The :attribute must be a date equal to :date.',
38 | 'date_format' => 'The :attribute does not match the format :format.',
39 | 'declined' => 'The :attribute must be declined.',
40 | 'declined_if' => 'The :attribute must be declined when :other is :value.',
41 | 'different' => 'The :attribute and :other must be different.',
42 | 'digits' => 'The :attribute must be :digits digits.',
43 | 'digits_between' => 'The :attribute must be between :min and :max digits.',
44 | 'dimensions' => 'The :attribute has invalid image dimensions.',
45 | 'distinct' => 'The :attribute field has a duplicate value.',
46 | 'email' => 'The :attribute must be a valid email address.',
47 | 'ends_with' => 'The :attribute must end with one of the following: :values.',
48 | 'enum' => 'The selected :attribute is invalid.',
49 | 'exists' => 'The selected :attribute is invalid.',
50 | 'file' => 'The :attribute must be a file.',
51 | 'filled' => 'The :attribute field must have a value.',
52 | 'gt' => [
53 | 'numeric' => 'The :attribute must be greater than :value.',
54 | 'file' => 'The :attribute must be greater than :value kilobytes.',
55 | 'string' => 'The :attribute must be greater than :value characters.',
56 | 'array' => 'The :attribute must have more than :value items.',
57 | ],
58 | 'gte' => [
59 | 'numeric' => 'The :attribute must be greater than or equal to :value.',
60 | 'file' => 'The :attribute must be greater than or equal to :value kilobytes.',
61 | 'string' => 'The :attribute must be greater than or equal to :value characters.',
62 | 'array' => 'The :attribute must have :value items or more.',
63 | ],
64 | 'image' => 'The :attribute must be an image.',
65 | 'in' => 'The selected :attribute is invalid.',
66 | 'in_array' => 'The :attribute field does not exist in :other.',
67 | 'integer' => 'The :attribute must be an integer.',
68 | 'ip' => 'The :attribute must be a valid IP address.',
69 | 'ipv4' => 'The :attribute must be a valid IPv4 address.',
70 | 'ipv6' => 'The :attribute must be a valid IPv6 address.',
71 | 'json' => 'The :attribute must be a valid JSON string.',
72 | 'lt' => [
73 | 'numeric' => 'The :attribute must be less than :value.',
74 | 'file' => 'The :attribute must be less than :value kilobytes.',
75 | 'string' => 'The :attribute must be less than :value characters.',
76 | 'array' => 'The :attribute must have less than :value items.',
77 | ],
78 | 'lte' => [
79 | 'numeric' => 'The :attribute must be less than or equal to :value.',
80 | 'file' => 'The :attribute must be less than or equal to :value kilobytes.',
81 | 'string' => 'The :attribute must be less than or equal to :value characters.',
82 | 'array' => 'The :attribute must not have more than :value items.',
83 | ],
84 | 'mac_address' => 'The :attribute must be a valid MAC address.',
85 | 'max' => [
86 | 'numeric' => 'The :attribute must not be greater than :max.',
87 | 'file' => 'The :attribute must not be greater than :max kilobytes.',
88 | 'string' => 'The :attribute must not be greater than :max characters.',
89 | 'array' => 'The :attribute must not have more than :max items.',
90 | ],
91 | 'mimes' => 'The :attribute must be a file of type: :values.',
92 | 'mimetypes' => 'The :attribute must be a file of type: :values.',
93 | 'min' => [
94 | 'numeric' => 'The :attribute must be at least :min.',
95 | 'file' => 'The :attribute must be at least :min kilobytes.',
96 | 'string' => 'The :attribute must be at least :min characters.',
97 | 'array' => 'The :attribute must have at least :min items.',
98 | ],
99 | 'multiple_of' => 'The :attribute must be a multiple of :value.',
100 | 'not_in' => 'The selected :attribute is invalid.',
101 | 'not_regex' => 'The :attribute format is invalid.',
102 | 'numeric' => 'The :attribute must be a number.',
103 | 'password' => 'The password is incorrect.',
104 | 'present' => 'The :attribute field must be present.',
105 | 'prohibited' => 'The :attribute field is prohibited.',
106 | 'prohibited_if' => 'The :attribute field is prohibited when :other is :value.',
107 | 'prohibited_unless' => 'The :attribute field is prohibited unless :other is in :values.',
108 | 'prohibits' => 'The :attribute field prohibits :other from being present.',
109 | 'regex' => 'The :attribute format is invalid.',
110 | 'required' => 'The :attribute field is required.',
111 | 'required_array_keys' => 'The :attribute field must contain entries for: :values.',
112 | 'required_if' => 'The :attribute field is required when :other is :value.',
113 | 'required_unless' => 'The :attribute field is required unless :other is in :values.',
114 | 'required_with' => 'The :attribute field is required when :values is present.',
115 | 'required_with_all' => 'The :attribute field is required when :values are present.',
116 | 'required_without' => 'The :attribute field is required when :values is not present.',
117 | 'required_without_all' => 'The :attribute field is required when none of :values are present.',
118 | 'same' => 'The :attribute and :other must match.',
119 | 'size' => [
120 | 'numeric' => 'The :attribute must be :size.',
121 | 'file' => 'The :attribute must be :size kilobytes.',
122 | 'string' => 'The :attribute must be :size characters.',
123 | 'array' => 'The :attribute must contain :size items.',
124 | ],
125 | 'starts_with' => 'The :attribute must start with one of the following: :values.',
126 | 'string' => 'The :attribute must be a string.',
127 | 'timezone' => 'The :attribute must be a valid timezone.',
128 | 'unique' => 'The :attribute has already been taken.',
129 | 'uploaded' => 'The :attribute failed to upload.',
130 | 'url' => 'The :attribute must be a valid URL.',
131 | 'uuid' => 'The :attribute must be a valid UUID.',
132 |
133 | /*
134 | |--------------------------------------------------------------------------
135 | | Custom Validation Language Lines
136 | |--------------------------------------------------------------------------
137 | |
138 | | Here you may specify custom validation messages for attributes using the
139 | | convention "attribute.rule" to name the lines. This makes it quick to
140 | | specify a specific custom language line for a given attribute rule.
141 | |
142 | */
143 |
144 | 'custom' => [
145 | 'attribute-name' => [
146 | 'rule-name' => 'custom-message',
147 | ],
148 | ],
149 |
150 | /*
151 | |--------------------------------------------------------------------------
152 | | Custom Validation Attributes
153 | |--------------------------------------------------------------------------
154 | |
155 | | The following language lines are used to swap our attribute placeholder
156 | | with something more reader friendly such as "E-Mail Address" instead
157 | | of "email". This simply helps us make our message more expressive.
158 | |
159 | */
160 |
161 | 'attributes' => [],
162 |
163 | ];
164 |
--------------------------------------------------------------------------------